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:
committed by
Dániel Bátyai
parent
a7d129c8b2
commit
bf630c0c54
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user