136 Commits

Author SHA1 Message Date
Rick Waldron
1ec7056f38
chore: migrate $ERROR -> throw new Test262Error in test/built-ins/Atomics (#3077) 2021-07-21 11:53:58 -07:00
Shu-yu Guo
6d49a317ac Add missing includes to some Atomics.waitAsync tests 2020-10-19 17:26:47 -04:00
Rick Waldron
d9740c1726 Atomics.waitAsync: fix lint 2020-10-14 14:21:04 -04:00
Rick Waldron
6d8ab9c35e Coverage: more Atomics.waitAsync tests, fixes, improved messages. 2020-10-08 17:25:45 -04:00
Rick Waldron
d576baf73f Info: adds "sec-evaluatenew" step to info for all "not-a-constructor.js" tests. 2020-10-06 12:01:34 -04:00
Rick Waldron
c644ede430 Built-in function objects that are not identified as constructors must throw a TypeError exception when new'ed. Fixes gh-1739 2020-10-06 12:01:34 -04:00
Rick Waldron
1c22e0b2f2 Atomics: fix test info contents to match definition as it appears in ES2020. Fixes gh-2721 2020-09-04 09:32:55 -04:00
Leo Balter
bc433f1e1c Fix typo in the tests for waitAsync
Fixes #2689
2020-07-08 13:46:07 -04:00
André Bargull
836f609b08 Update Atomics.exchange to allow non-shared buffers
Follow-up for: https://github.com/tc39/test262/pull/2633
2020-06-30 16:04:25 -04:00
Rick Waldron
51e73466ee
Atomics.waitAsync: more guards against false positive test passing (#2678) 2020-06-30 07:40:18 -07:00
Rick Waldron
fcb3b91e4a
Atomics.waitAsync: await $262.agent.getReportAsync() in a loop, instead of calling thrice asynchronously. Fixes 2664 (#2676) 2020-06-24 13:51:52 -07:00
Rick Waldron
ae7b606cc2 Atomics: use .then($DONE, $DONE) wherever possible 2020-06-24 15:47:49 -04:00
Rick Waldron
729fa02951 Atomics: update Atomics.sub to match latest proposed spec change
https://github.com/tc39/ecma262/pull/1908#issuecomment-647614204
2020-06-24 12:26:41 -04:00
Rick Waldron
529cff8ee6 Atomics: corrections 2020-06-24 12:26:41 -04:00
Rick Waldron
7e603ae236 Atomics: fix mispelled harness function name 2020-06-24 12:26:41 -04:00
Rick Waldron
4adc41eccf Atomics.* assertion messages and formatting 2020-06-24 12:26:41 -04:00
Rick Waldron
d3980866c8 Atomics.xor will operate on TA when TA.buffer is not a SharedArrayBuffer 2020-06-24 12:26:41 -04:00
Rick Waldron
e4d24694ea Atomics.sub will operate on TA when TA.buffer is not a SharedArrayBuffer 2020-06-24 12:26:41 -04:00
Rick Waldron
5e43594d44 Atomics.store will operate on TA when TA.buffer is not a SharedArrayBuffer 2020-06-24 12:26:41 -04:00
Rick Waldron
131165be7e Atomics.or will operate on TA when TA.buffer is not a SharedArrayBuffer 2020-06-24 12:26:41 -04:00
Rick Waldron
e1c71a65e2 fixup! Atomics.and will operate on TA when TA.buffer is not a SharedArrayBuffer 2020-06-24 12:26:41 -04:00
Rick Waldron
9e7b4e733d Fix license lint & issues 2020-06-24 12:26:41 -04:00
Rick Waldron
2979e917a2 Atomics: fix assertion messages 2020-06-24 12:26:41 -04:00
Rick Waldron
1f977dc9fc Atomics.exchange will operate on TA when TA.buffer is not a SharedArrayBuffer 2020-06-24 12:26:41 -04:00
Rick Waldron
eb5120a1e9 Atomics.compareExchange will operate on TA when TA.buffer is not a SharedArrayBuffer 2020-06-24 12:26:41 -04:00
Rick Waldron
f82e09bab0 Atomics.and will operate on TA when TA.buffer is not a SharedArrayBuffer 2020-06-24 12:26:41 -04:00
Rick Waldron
b4517aa192 Atomics.add will operate on TA when TA.buffer is not a SharedArrayBuffer 2020-06-24 12:26:41 -04:00
Rick Waldron
8182e4efc4 Atomics.store will operate on TA when TA.buffer is not a SharedArrayBuffer 2020-06-24 12:26:41 -04:00
Rick Waldron
11a1eabcc6 Atomics.load will operate on TA when TA.buffer is not a SharedArrayBuffer 2020-06-24 12:26:41 -04:00
Rick Waldron
302f37eeff Atomics.notify changed to always return 0 on non-shared 2020-06-24 12:26:41 -04:00
Rick Waldron
f89ea8758b
Atomics.waitAsync: BigInt (#2642)
* Atomics.waitAsync: BigInt

* Atomics.waitAsync: check for function to avoid false positives
2020-06-12 09:57:14 -07:00
Rick Waldron
24b7f5fa99
Atomics.waitAsync: update feature flags (#2641) 2020-05-27 12:11:06 -07:00
Rick Waldron
914ab0280c Atomics.waitAsync: prevent in-agent tests from hanging by checking for Atomics.waitAsync at start of test 2020-05-08 10:01:32 -04:00
Rick Waldron
fadb9073d3 Atomics.waitAsync: fix lint trash 2020-04-23 10:32:55 -04:00
Rick Waldron
d7e4de1484 Atomics.waitAsync: validate array type; waiter list position, notify before timeout 2020-04-23 10:32:55 -04:00
Rick Waldron
161ce480d1 Atomics.waitAsync: misused symbol args. 2020-04-23 10:32:55 -04:00
Rick Waldron
bd5b37e51e Atomics.waitAsync: symbol for timeout throws 2020-04-23 10:32:55 -04:00
Rick Waldron
eeb75f60dd Atomics.waitAsync: poisoned object throws 2020-04-23 10:32:55 -04:00
Rick Waldron
db9c0ef27c Atomics.waitAsync: out of range index 2020-04-23 10:32:55 -04:00
Rick Waldron
092342098e Atomics.waitAsync: fix lint issues 2020-04-23 10:32:55 -04:00
Rick Waldron
c3efb56025 Atomics.waitAsync: make all agent timeouts async 2020-04-23 10:32:55 -04:00
Rick Waldron
f03c0c2de3 fixup! Atomics.waitAsync: no spurious wakeup on [operation] 2020-04-23 10:32:55 -04:00
Rick Waldron
a46bbfd872 Atomics: drop unused id argument to agent receiveBroadcast handler 2020-04-23 10:32:55 -04:00
Rick Waldron
974a4ffbc5 Atomics.waitAsync: no spurious wakeup on [operation] 2020-04-23 10:32:55 -04:00
Rick Waldron
6d4b4eba98 Atomics.waitAsync: false, nan, negative, null, object zero timeouts 2020-04-23 10:32:55 -04:00
Rick Waldron
4c2ca05790 Atomics.waitAsync: negative index throws 2020-04-23 10:32:55 -04:00
Rick Waldron
a196c9307d Atomics.waitAsync: negative timeout 2020-04-23 10:32:55 -04:00
Rick Waldron
677fb82a75 Atomics.waitAsync: false for timeouts, revised. 2020-04-23 10:32:55 -04:00
Rick Waldron
9519cd8448 Atomics.waitAsync: Return Value 2020-04-23 10:32:55 -04:00
Rick Waldron
dabcc05199 Atomics.waitAsync: false, nan for timeouts 2020-04-23 10:32:55 -04:00