Implement binding pattern support for rest argument and for statement. (#3327)

JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
This commit is contained in:
Zoltan Herczeg
2019-11-19 14:02:17 +01:00
committed by Dániel Bátyai
parent a7d129c8b2
commit bf630c0c54
9 changed files with 153 additions and 11 deletions
+1 -2
View File
@@ -1446,8 +1446,7 @@ parser_parse_unary_expression (parser_context_t *context_p, /**< context */
}
case LEXER_KEYW_SUPER:
{
if ((lexer_check_next_character (context_p, LIT_CHAR_DOT)
|| lexer_check_next_character (context_p, LIT_CHAR_LEFT_SQUARE))
if (lexer_check_next_characters (context_p, LIT_CHAR_DOT, LIT_CHAR_LEFT_SQUARE)
&& context_p->status_flags & (PARSER_CLASS_HAS_SUPER))
{
if (!LEXER_IS_BINARY_LVALUE_TOKEN (context_p->stack_top_uint8))