mirror of
https://github.com/bellard/quickjs.git
synced 2024-11-23 14:18:13 +08:00
fixes issue in var [a,b,c,d] = ... destructuring assignment
This commit is contained in:
parent
2ead907a60
commit
a37183d93e
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user