]> git.kaiwu.me - quickjs.git/commitdiff
fixed parsing of computed property name
authorFabrice Bellard <fabrice@bellard.org>
Mon, 22 Sep 2025 12:48:43 +0000 (14:48 +0200)
committerFabrice Bellard <fabrice@bellard.org>
Mon, 22 Sep 2025 12:48:43 +0000 (14:48 +0200)
TODO
quickjs.c
test262_errors.txt

diff --git a/TODO b/TODO
index 7f8862123933ab7b622042ecc5f0d5c64963ea45..76d5c313ced8ade85305d8e2b840f34235b476a5 100644 (file)
--- a/TODO
+++ b/TODO
@@ -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
index 498dcbf3ed1be7c713d707d42ec578f21f434bdb..fe67301af39184f1a4cb30eb0baecd73c0f6d89c 100644 (file)
--- a/quickjs.c
+++ b/quickjs.c
@@ -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;
index ffe19b9ee1cae55a16fd46aed945925b75a42d22..b669a6bdbe9ef204d82aac4104856ccba62bb919 100644 (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