Skip to content

Commit 97c0e62

Browse files
committed
Update QuickJS
Upstream merged test262 PR so drop patches related to that: bellard/quickjs#408 Other improvements * Add set methods (union, difference, intersection, ...) bellard/quickjs@a1e073e * Add iterators bellard/quickjs@982b7aa bellard/quickjs@e924173 bellard/quickjs@b2ed2e9 bellard/quickjs@cf0e179 bellard/quickjs@2d99c32 * Add ArrayBuffer.prototype.transfer bellard/quickjs@1e19893 * Add resizable array buffers bellard/quickjs@f021d77 * Add Map and WeakMap upsert bellard/quickjs@456e016 * Add Map.sumPrecise() bellard/quickjs@bc753c6 bellard/quickjs@c3e5ae2 * Fix date parsing bellard/quickjs@0060876
1 parent a830cf2 commit 97c0e62

File tree

10 files changed

+2680
-430
lines changed

10 files changed

+2680
-430
lines changed

src/couch_quickjs/patches/01-spidermonkey-185-mode.patch

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
--- quickjs-master/quickjs.c 2025-09-18 04:42:13
2-
+++ quickjs/quickjs.c 2025-09-18 11:43:37
3-
@@ -30751,10 +30751,24 @@
1+
--- quickjs-master/quickjs.c 2025-09-30 04:35:00
2+
+++ quickjs/quickjs.c 2025-09-30 11:38:07
3+
@@ -30784,10 +30784,24 @@
44
if (s->token.val == TOK_FUNCTION ||
55
(token_is_pseudo_keyword(s, JS_ATOM_async) &&
66
peek_token(s, TRUE) == TOK_FUNCTION)) {
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
--- quickjs-master/test262_errors.txt 2025-09-18 04:42:13
2-
+++ quickjs/test262_errors.txt 2025-09-18 11:43:37
3-
@@ -7,6 +7,8 @@
1+
--- quickjs-master/test262_errors.txt 2025-09-30 04:35:00
2+
+++ quickjs/test262_errors.txt 2025-09-30 11:47:32
3+
@@ -5,6 +5,8 @@
4+
test262/test/annexB/language/expressions/assignmenttargettype/callexpression-in-prefix-update.js:27: SyntaxError: invalid increment/decrement operand
5+
test262/test/annexB/language/expressions/assignmenttargettype/callexpression.js:33: SyntaxError: invalid assignment left-hand side
46
test262/test/annexB/language/expressions/assignmenttargettype/cover-callexpression-and-asyncarrowhead.js:20: SyntaxError: invalid assignment left-hand side
5-
test262/test/built-ins/Atomics/notify/retrieve-length-before-index-coercion-non-shared-detached.js:34: TypeError: ArrayBuffer is detached
6-
test262/test/built-ins/Atomics/notify/retrieve-length-before-index-coercion-non-shared-detached.js:34: strict mode: TypeError: ArrayBuffer is detached
77
+test262/test/language/statements/expression/S12.4_A1.js:15: unexpected error type: Test262: This statement should not be evaluated.
88
+test262/test/language/statements/expression/S12.4_A1.js:15: strict mode: unexpected error type: Test262: This statement should not be evaluated.
99
test262/test/staging/sm/Date/UTC-convert-all-arguments.js:75: Test262Error: index 1: expected 42, got Error: didn't throw Expected SameValue(«Error: didn't throw», «42») to be true
1010
test262/test/staging/sm/Date/constructor-convert-all-arguments.js:75: Test262Error: index undefined: expected 42, got Error: didn't throw Expected SameValue(«Error: didn't throw», «42») to be true
11-
test262/test/staging/sm/Date/non-iso.js:76: Test262Error: Expected SameValue(«NaN», «-40071559730000») to be true
11+
test262/test/staging/sm/Date/two-digit-years.js:76: Test262Error: Expected SameValue(«915177600000», «NaN») to be true

src/couch_quickjs/patches/02-test262-makefile.patch

Lines changed: 0 additions & 29 deletions
This file was deleted.

src/couch_quickjs/patches/03-test262-yield.patch

Lines changed: 0 additions & 15 deletions
This file was deleted.

src/couch_quickjs/quickjs/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ PREFIX?=/usr/local
5555
#CONFIG_UBSAN=y
5656

5757
# TEST262 bootstrap config: commit id and shallow "since" parameter
58-
TEST262_COMMIT?=04eaeb99080ceb60d7b86ea0c4bed6355ef4cdcb
59-
TEST262_SINCE?=2025-08-20
58+
TEST262_COMMIT?=a5e69a1534de88d1eb29b76657d84c8541b72df7
59+
TEST262_SINCE?=2025-09-01
6060

6161
OBJDIR=.obj
6262

src/couch_quickjs/quickjs/quickjs-atom.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ DEF(await, "await")
7878
/* empty string */
7979
DEF(empty_string, "")
8080
/* identifiers */
81+
DEF(keys, "keys")
82+
DEF(size, "size")
8183
DEF(length, "length")
8284
DEF(fileName, "fileName")
8385
DEF(lineNumber, "lineNumber")
@@ -189,6 +191,7 @@ DEF(timed_out, "timed-out")
189191
DEF(ok, "ok")
190192
/* */
191193
DEF(toJSON, "toJSON")
194+
DEF(maxByteLength, "maxByteLength")
192195
/* class names */
193196
DEF(Object, "Object")
194197
DEF(Array, "Array")
@@ -228,6 +231,9 @@ DEF(Map, "Map")
228231
DEF(Set, "Set") /* Map + 1 */
229232
DEF(WeakMap, "WeakMap") /* Map + 2 */
230233
DEF(WeakSet, "WeakSet") /* Map + 3 */
234+
DEF(Iterator, "Iterator")
235+
DEF(IteratorHelper, "Iterator Helper")
236+
DEF(IteratorWrap, "Iterator Wrap")
231237
DEF(Map_Iterator, "Map Iterator")
232238
DEF(Set_Iterator, "Set Iterator")
233239
DEF(Array_Iterator, "Array Iterator")

0 commit comments

Comments
 (0)