Ben Noordhuis
416ab66f0b
Update to Unicode 15.1
2024-11-09 23:14:52 +01:00
Ben Noordhuis
55b829e666
Update test262_errors.txt after commit 73cc00e
( #665 )
...
Commit 73cc00e
improves the accuracy of line and column number tracking
but I forgot that that also affects the output of run-test262.
2024-11-09 16:02:44 +01:00
Ben Noordhuis
37fe427d59
Add resizable ArrayBuffers ( #646 )
...
This commit implements resizable ArrayBuffers - RABs for short - and
extends typed arrays (TAs) to support fixed-length and length-tracking
modes.
SharedArrayBuffers (SABs) also support the maxByteLength option now but
I cheated and allocate all memory upfront because atomically resizing
memory allocations is hard and this commit is already big and complex.
The lion's share is updating all the TA prototype methods to deal with
RABs resizing underneath them. Method arguments can be arbitrary objects
with arbitrary .valueOf methods and arbitrary side effects, like...
resizing the RAB we're currently operating on.
Fixes: https://github.com/quickjs-ng/quickjs/issues/477
2024-11-05 21:55:42 +01:00
Saúl Ibarra Corretgé
82607f4deb
Implement Iterator.prototype.some
2024-10-25 22:37:05 +02:00
Saúl Ibarra Corretgé
de58faaee0
Implement Iterator.prototype.reduce
2024-10-25 21:23:44 +02:00
Saúl Ibarra Corretgé
f78d1e6b94
Implement Iterator.prototype.find
2024-10-25 21:23:26 +02:00
Saúl Ibarra Corretgé
3339ef7137
Implement Iterator.prototype.forEach
2024-10-24 19:34:58 +02:00
Saúl Ibarra Corretgé
b9a22f9bdd
Implement Iterator.prototype.every
2024-10-24 18:07:51 +02:00
Saúl Ibarra Corretgé
52e0f24048
Fix computed reference on null or undefined
2024-10-07 21:39:59 +02:00
Saúl Ibarra Corretgé
acc0dd9273
Implement proper Symbol.toStringTag for iterators
2024-10-07 21:39:02 +02:00
Saúl Ibarra Corretgé
a0877514b9
fixup!
2024-10-05 12:35:47 +02:00
Ben Noordhuis
348d60985d
Add Iterator.from ( #555 )
2024-09-27 00:16:50 +02:00
Ben Noordhuis
9a618ed426
Add Iterator.prototype.toArray ( #552 )
...
Churn in test262_errors.txt is due to fixing Iterator inheritance,
necessary to make the prototype method actually callable.
2024-09-25 22:45:02 +02:00
Ben Noordhuis
aefdee7b9a
Add Iterator ( #548 )
2024-09-24 22:07:29 +02:00
Ben Noordhuis
beb998c5c5
Enable iterator-helpers test262 feature ( #546 )
...
Enable the feature to give us a burndown list of things to implement.
2024-09-24 19:21:47 +02:00
Saúl Ibarra Corretgé
3a96b9cb6f
Support private brand checks
...
Fixes: https://github.com/quickjs-ng/quickjs/issues/541
Ref: 3ab1c2b314
2024-09-24 18:37:02 +02:00
Saúl Ibarra Corretgé
5f5170796e
regexp: fixed the zero advance logic in quantifiers
...
Ref: 10fc744ae4
2024-09-14 22:00:48 +02:00
Ben Noordhuis
8557bd0a0a
Add Set.prototype.isSupersetOf ( #532 )
2024-09-14 00:19:20 +02:00
Saúl Ibarra Corretgé
f5c388d693
Fix regexp case insensitive flag ( #531 )
...
Ref: af308614a8
2024-09-13 23:50:44 +02:00
Saúl Ibarra Corretgé
ac958f1d2f
Optional chaining fixes
...
Ref: f25e5d4094
2024-09-13 23:27:35 +02:00
Ben Noordhuis
0990875ae8
Add Set.prototype.isSubsetOf ( #529 )
2024-09-13 22:58:47 +02:00
Ben Noordhuis
12940d7877
Add Set.prototype.isDisjointFrom ( #528 )
2024-09-13 21:04:09 +02:00
Ben Noordhuis
b751ed5026
Add Set.prototype.intersection ( #511 )
2024-09-09 22:08:24 +02:00
Ben Noordhuis
6ba2448751
Add Set.prototype.symmetricDifference ( #507 )
2024-09-09 19:39:30 +02:00
Ben Noordhuis
7513260d9a
Add Set.prototype.difference ( #504 )
2024-09-07 09:44:55 +02:00
Ben Noordhuis
8e81a88a18
Add Set.prototype.union ( #499 )
2024-09-06 09:24:21 +02:00
Ben Noordhuis
9bc41a8a00
Add Float16Array ( #491 )
2024-09-03 20:32:17 +02:00
Ben Noordhuis
cee3b88edb
Fix async iterator missing throw method behavior ( #485 )
2024-08-22 09:02:11 +02:00
Ben Noordhuis
408fed8fa5
Update test262 ( #484 )
...
test262/implementation-contributed/v8/mjsunit was removed upstream in
commit tc39/test262@a15874163e so this
commit also removes the v8 test runner; it's no longer functional.
2024-08-21 23:36:09 +02:00
Ben Noordhuis
e995085d0c
Fix evaluation order of computed properties
...
The evaluation order is observable. Align with what test262 expects.
2024-01-16 12:43:35 +01:00
Ben Noordhuis
b5d6cea20e
Fix Reflect typed array element conversion ( #240 )
2023-12-30 10:45:33 +01:00
Ben Noordhuis
05fb3d9dc8
Fix Reflect with detached ArrayBuffer ( #239 )
2023-12-29 15:10:45 +01:00
Ben Noordhuis
64c9ac5392
Fix run-test262 dynamic import ( #237 )
...
Make basename imports resolve relative to the file under test.
2023-12-27 10:19:58 +01:00
Saúl Ibarra Corretgé
bfb4b35722
Fix: 'for of' expression cannot start with 'async'
...
Ref: 7cefa7b121
2023-12-23 00:11:41 +01:00
Saúl Ibarra Corretgé
7ef2ed6363
Remove incorrect await in async yield*
...
Ref: 43420235d5
2023-12-23 00:11:41 +01:00
Ben Noordhuis
35e6bfceb1
Partially port bellard/quickjs@58f374ef42 ( #214 )
...
This commit merges JS_SetPropertyGeneric into JS_SetPropertyInternal2
and obsoletes commit b51b510
and partially obsoletes commit 8baafc4;
detachment and negative zero handling now fall out naturally.
2023-12-15 00:03:18 +01:00
Saúl Ibarra Corretgé
39901e2b86
Fix async generator in case of exception in implicit await in the 'return' statement
...
Ref: 57105c7f23
2023-12-14 11:49:14 +01:00
Fabrice Bellard
864a66459b
Raise an error if a private method is added twice to an object
2023-12-14 11:49:14 +01:00
Ben Noordhuis
b51b5100b0
Handle negative zero typed array indices correctly ( #212 )
...
`ta["-0"] = 42` is a thing and not just any thing but a decidedly weird
thing: it completes successful, sets no property, but still evaluates
the value for side effects.
2023-12-14 11:12:55 +01:00
Ben Noordhuis
5168db1965
Handle TypedArray detach during iteration ( #209 )
...
Per spec: detaching the TA mid-iteration is allowed.
TypedArray.prototype.sort should not throw an exception when that
happens and now no longer does.
2023-12-13 08:55:01 +01:00
Ben Noordhuis
8baafc46bd
Don't throw OOB exception for detached typed array ( #208 )
...
`a[42] = 1` where a is a detached typed array should not throw but
`Object.defineProperty()` still should. Add a check and a flag that
distinguishes between the two cases.
2023-12-12 23:14:33 +01:00
Ben Noordhuis
dbed7be3cb
Handle TypedArray detach during iteration ( #201 )
...
Per spec: detaching the TA mid-iteration is allowed and should not
not throw an exception.
In the case of TypedArray.prototype.set, because iteration over the
source array is observable, we cannot bail out early when the TA is
first detached.
2023-12-11 09:22:02 +01:00
Ben Noordhuis
315096461b
Implement TypedArray.prototype.with ( #200 )
2023-12-10 21:25:31 +01:00
Ben Noordhuis
83dfc635f1
Implement TypedArray.prototype.toSorted ( #199 )
2023-12-10 21:23:52 +01:00
Ben Noordhuis
05f00a87f7
Implement TypedArray.prototype.toReversed ( #198 )
2023-12-10 21:21:21 +01:00
Fabrice Bellard
baf50f9236
fixed duplicate static private setter/getter test
2023-12-10 21:03:48 +01:00
Fabrice Bellard
e8b97048d4
Symbol.species is no longer used in TypedArray constructor from a TypedArray
2023-12-10 21:03:48 +01:00
Fabrice Bellard
46996ff258
fixed delete super.x error
2023-12-10 21:03:48 +01:00
Saúl Ibarra Corretgé
9539e3cc65
Fix private field setters
...
Ref: 55a4878a60
2023-12-07 22:21:48 +01:00
Ben Noordhuis
3f10651dc1
Prohibit freezing/sealing module namespace objects ( #160 )
2023-11-30 00:42:36 +01:00