Fix for-of block context creation for empty destructuring pattern (#3492)
This patch fixes #3421. JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik [email protected]
This commit is contained in:
1 parent
aedd55b1f8
commit
dc3de8d8ae
2 files changed
+21
-2
No files matched your search
@@ -1189,12 +1189,12 @@ parser_parse_for_statement_start (parser_context_t *context_p) /**< context */
|
||||
else
|
||||
{
|
||||
token_type = LEXER_KEYW_LET;
|
||||
has_context = true;
|
||||
has_context = (context_p->next_scanner_info_p->source_p == context_p->source_p);
|
||||
scanner_get_location (&start_location, context_p);
|
||||
}
|
||||
}
|
||||
|
||||
if (has_context && (context_p->next_scanner_info_p->source_p == context_p->source_p))
|
||||
if (has_context)
|
||||
{
|
||||
has_context = parser_push_block_context (context_p, true);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user