From a37183d93e91c1adf06a31e403b68f4013c576e2 Mon Sep 17 00:00:00 2001 From: Andrew Date: Tue, 20 Oct 2020 20:23:06 -0700 Subject: [PATCH] fixes issue in var [a,b,c,d] = ... destructuring assignment --- quickjs.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/quickjs.c b/quickjs.c index d5c18c1..475a0b5 100644 --- a/quickjs.c +++ b/quickjs.c @@ -24115,6 +24115,8 @@ static int js_parse_destructuring_element(JSParseState *s, int tok, int is_arg, goto var_error; opcode = OP_scope_get_var; scope = s->cur_func->scope_level; + label_lvalue = -1; + depth_lvalue = 0; } else { if (js_parse_postfix_expr(s, TRUE)) return -1;