mirror of
https://github.com/bellard/quickjs.git
synced 2025-09-29 14:36:30 +03:00
'for of' expression cannot start with 'async'
This commit is contained in:
@@ -25787,6 +25787,9 @@ static __exception int js_parse_for_in_of(JSParseState *s, int label_name,
|
||||
emit_atom(s, var_name);
|
||||
emit_u16(s, fd->scope_level);
|
||||
}
|
||||
} else if (!is_async && token_is_pseudo_keyword(s, JS_ATOM_async) &&
|
||||
peek_token(s, FALSE) == TOK_OF) {
|
||||
return js_parse_error(s, "'for of' expression cannot start with 'async'");
|
||||
} else {
|
||||
int skip_bits;
|
||||
if ((s->token.val == '[' || s->token.val == '{')
|
||||
|
Reference in New Issue
Block a user