fixed parsing of computed property name

This commit is contained in:
Fabrice Bellard
2025-09-22 14:48:43 +02:00
parent 1e19893c82
commit 44d03a823d
3 changed files with 2 additions and 3 deletions

View File

@@ -23437,7 +23437,7 @@ static int __exception js_parse_property_name(JSParseState *s,
} else if (s->token.val == '[') {
if (next_token(s))
goto fail;
if (js_parse_expr(s))
if (js_parse_assign_expr(s))
goto fail;
if (js_parse_expect(s, ']'))
goto fail;