Class expression scanning must be continued with post primary expression scanning. (#3120)

This patch fixes #3117 and fixes #3119.

JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik frobert@inf.u-szeged.hu
This commit is contained in:
Robert Fancsik
2019-09-16 03:58:14 -07:00
committed by Dániel Bátyai
parent 8d9788d1b5
commit 4452e79204
3 changed files with 32 additions and 1 deletions
+1 -1
View File
@@ -1435,7 +1435,7 @@ scanner_scan_all (parser_context_t *context_p, /**< context */
if (context_p->token.type == LEXER_RIGHT_BRACE)
{
scanner_context.mode = (stack_top == SCAN_STACK_CLASS_EXPRESSION ? SCAN_MODE_PRIMARY_EXPRESSION_END
scanner_context.mode = (stack_top == SCAN_STACK_CLASS_EXPRESSION ? SCAN_MODE_POST_PRIMARY_EXPRESSION
: SCAN_MODE_STATEMENT);
parser_stack_pop_uint8 (context_p);
break;