Skip to content

Commit

Permalink
On MSVC, when running tests, it's complain label_lvalue are used with…
Browse files Browse the repository at this point in the history
…out init.

Give it a init value

Signed-off-by: Yonggang Luo <[email protected]>
  • Loading branch information
lygstate committed Feb 16, 2021
1 parent 7aa3e81 commit 5baf92e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions quickjs.c
Original file line number Diff line number Diff line change
Expand Up @@ -23820,6 +23820,8 @@ static int js_parse_destructuring_element(JSParseState *s, int tok, int is_arg,
JSAtom prop_name, var_name;
int opcode, scope, tok1, skip_bits;
BOOL has_initializer;

label_lvalue = -1;

if (has_ellipsis < 0) {
/* pre-parse destructuration target for spread detection */
Expand Down

0 comments on commit 5baf92e

Please sign in to comment.