Fix strict mode in an object initializer's getters / setters definition.
JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan [email protected]
This commit is contained in:
1 parent
4f58104981
commit
7ccec19c26
2 files changed
+13
-5
No files matched your search
@@ -393,9 +393,6 @@ parse_property_assignment (void)
|
||||
|
||||
dump_function_end_for_rewrite ();
|
||||
|
||||
const bool is_strict = scopes_tree_strict_mode (STACK_TOP (scopes));
|
||||
scopes_tree_set_strict_mode (STACK_TOP (scopes), false);
|
||||
|
||||
token_after_newlines_must_be (TOK_OPEN_BRACE);
|
||||
skip_newlines ();
|
||||
|
||||
@@ -410,8 +407,6 @@ parse_property_assignment (void)
|
||||
|
||||
token_after_newlines_must_be (TOK_CLOSE_BRACE);
|
||||
|
||||
scopes_tree_set_strict_mode (STACK_TOP (scopes), is_strict);
|
||||
|
||||
dump_ret ();
|
||||
rewrite_function_end (VARG_FUNC_EXPR);
|
||||
|
||||
|
||||
Reference in new issue
Block a user