Support ES2015 block-level function declarations in strict-mode #970
Labels
behavior
block-scope
Ecma Incompatibility
Issues about Rhino being incompatible with the EcmaScript spec
Strict Mode
Issues related to non-compliance with the ES5 Strict Mode spec
Milestone
See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/block#block_scoping_rules_with_let_const_or_function_declaration_in_strict_mode
In ES5 function declarations were not allowed in strict mode in the newly introduced block scopes
As of ES2015 function declarations inside block scopes in strict mode are allowed, but they are to be block scopes
Note that our
let
implementation already adheres to block scoping (while ourconst
impl. does not, see #939)The text was updated successfully, but these errors were encountered: