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

2
TODO
View File

@ -62,5 +62,5 @@ Optimization ideas:
Test262o: 0/11262 errors, 463 excluded
Test262o commit: 7da91bceb9ce7613f87db47ddd1292a2dda58b42 (es5-tests branch)
Result: 54/80760 errors, 1631 excluded, 6064 skipped
Result: 53/80840 errors, 1631 excluded, 6024 skipped
Test262 commit: e7e136756cd67c1ffcf7c09d03aeb8ad5a6cec0c

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;

View File

@ -33,7 +33,6 @@ test262/test/staging/sm/async-functions/async-contains-unicode-escape.js:45: Err
test262/test/staging/sm/async-functions/await-error.js:12: Test262Error: Expected SameValue(«false», «true») to be true
test262/test/staging/sm/async-functions/await-in-arrow-parameters.js:33: Error: Assertion failed: expected exception SyntaxError, no exception thrown - AsyncFunction:(a = (b = await/r/g) => {}) => {}
test262/test/staging/sm/class/boundFunctionSubclassing.js:12: Test262Error: Expected SameValue(«false», «true») to be true
test262/test/staging/sm/class/compPropNames.js:26: Error: Expected syntax error: ({[1, 2]: 3})
test262/test/staging/sm/class/strictExecution.js:32: Error: Assertion failed: expected exception TypeError, no exception thrown
test262/test/staging/sm/class/superPropOrdering.js:83: Error: Assertion failed: expected exception TypeError, no exception thrown
test262/test/staging/sm/expressions/short-circuit-compound-assignment-const.js:97: TypeError: 'a' is read-only