fixes issue in var [a,b,c,d] = ... destructuring assignment

This commit is contained in:
Andrew 2020-10-20 20:23:06 -07:00
parent 2ead907a60
commit a37183d93e

View File

@ -24115,6 +24115,8 @@ static int js_parse_destructuring_element(JSParseState *s, int tok, int is_arg,
goto var_error; goto var_error;
opcode = OP_scope_get_var; opcode = OP_scope_get_var;
scope = s->cur_func->scope_level; scope = s->cur_func->scope_level;
label_lvalue = -1;
depth_lvalue = 0;
} else { } else {
if (js_parse_postfix_expr(s, TRUE)) if (js_parse_postfix_expr(s, TRUE))
return -1; return -1;