Export assignment expression must not track variables (#4660)
Only export the result of the assignment expression. This value cannot be changed later. JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
This commit is contained in:
@@ -967,7 +967,7 @@ parser_parse_class (parser_context_t *context_p, /**< context */
|
||||
|
||||
#if JERRY_MODULE_SYSTEM
|
||||
parser_module_append_export_name (context_p);
|
||||
context_p->status_flags &= (uint32_t) ~(PARSER_MODULE_STORE_IDENT);
|
||||
context_p->status_flags &= (uint32_t) ~PARSER_MODULE_STORE_IDENT;
|
||||
#endif /* JERRY_MODULE_SYSTEM */
|
||||
|
||||
lexer_next_token (context_p);
|
||||
@@ -2045,15 +2045,6 @@ parser_parse_unary_expression (parser_context_t *context_p, /**< context */
|
||||
lexer_construct_literal_object (context_p,
|
||||
&context_p->token.lit_location,
|
||||
context_p->token.lit_location.type);
|
||||
|
||||
#if JERRY_MODULE_SYSTEM
|
||||
if ((context_p->status_flags & PARSER_MODULE_STORE_IDENT)
|
||||
&& type == LEXER_IDENT_LITERAL)
|
||||
{
|
||||
context_p->module_identifier_lit_p = context_p->lit_object.literal_p;
|
||||
context_p->status_flags &= (uint32_t) ~(PARSER_MODULE_STORE_IDENT);
|
||||
}
|
||||
#endif /* JERRY_MODULE_SYSTEM */
|
||||
}
|
||||
else if (type == LEXER_NUMBER_LITERAL)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user