Fix local scoping for functions. (#3559)

JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
This commit is contained in:
Zoltan Herczeg
2020-02-18 09:49:03 +01:00
committed by GitHub
parent 44e63e038d
commit fda02d4b2a
18 changed files with 366 additions and 288 deletions
+1 -2
View File
@@ -110,8 +110,7 @@ parser_print_literal (parser_context_t *context_p, /**< context */
break;
}
}
else if (scope_stack_end_p->map_to != PARSER_SCOPE_STACK_FUNC
&& literal_index == scanner_decode_map_to (scope_stack_end_p))
else if (literal_index == scanner_decode_map_to (scope_stack_end_p))
{
in_scope_literal = true;
break;