7254 Commits

Author SHA1 Message Date
Nicolò Ribaudo
ccf301650f
Test a module depending on a non-root node of an async cycle (#4465) 2025-10-28 16:21:27 +00:00
Nicolò Ribaudo
d2940bdbb0 Test that resetting [[ModuleAsyncEvaluationCount]] is unobserbable 2025-10-17 17:47:48 +02:00
Richard Gibson
687cf880eb
Temporal: Add tests for PlainMonthDay.from with month and invalid monthCode (#4597) 2025-10-15 18:56:49 +00:00
Philip Chimento
a6f910b8ab Fix module specifiers
These should be relative paths, starting with "./". Bare specifiers are
not allowed in test262.
2025-10-14 10:19:07 +02:00
Richard Gibson
42303c7c2b Update harness/sm/non262-Math-shell.js to work around test262-harness bug
Ref https://github.com/bocoup/test262-stream/issues/34
2025-10-09 14:40:16 +02:00
Richard Gibson
fd2e09dd55 Add missing includes to test/staging/sm/Math/*.js
Fixes #4588
2025-10-09 14:40:16 +02:00
Nicolò Ribaudo
761dc4687c
Add tests for resolution order of async modules promises (#4591) 2025-10-09 12:25:23 +00:00
Mark S. Miller
ac316607ba
[nonextensible-applies-to-private] Fix bugs (#4590)
Fixes #4587
2025-10-08 15:30:40 +00:00
Sosuke Suzuki
432bc2b863 Add assertions for checking names of resolve and reject 2025-10-06 12:45:03 +02:00
Linus Groh
ceff26d0cc Update features.txt to move stage 4 proposals 2025-10-03 17:51:31 +02:00
Richard Gibson
06dfddc4eb
Move compareArray into assert.js (#4592) 2025-10-02 16:50:07 -04:00
Ben Noordhuis
2e7412547d Test iterator close behavior of Set methods
Set.prototype.isDisjointFrom and Set.prototype.isSupersetOf should call
return() on the set-like iterator but only when it is not exhausted.

Port of the downstream tests I added in quickjs-ng/quickjs@6167dcb127.
2025-09-30 11:57:20 +02:00
jugglinmike
8a8a7af1b9
Classify tests for the stability of array sorting (#4569)
* Classify tests for the stability of array sorting

These tests were originally introduced via
https://github.com/tc39/test262/pull/1977 &
https://github.com/tc39/test262/pull/2062 and subsequently modified via
https://github.com/tc39/test262/pull/2169.

* fixup! Classify tests for the stability of array sorting
2025-09-25 16:26:49 -04:00
André Bargull
5155b2ad7e Add test case when countBytes in TA.p.slice is set to zero
`countBytes` can be set to zero in step 14.d when resizable array
buffers are used.
2025-09-25 17:49:06 +02:00
André Bargull
b5aac6bc84 String.prototype.toLocale{Lower,Upper}Case validates all locale identifiers 2025-09-25 17:42:28 +02:00
Ben Noordhuis
409001b61b Make iterator sequencing test more explicit
The next() method is not supposed to get called. Per discussion here:
https://github.com/tc39/test262/pull/4326#discussion_r2371763680
2025-09-23 16:25:54 -07:00
Adam Shaw
2f06e0b6b3
Tests for Temporal issue 3141 (#4568)
* tests for Temporal issue 3141

* added test descriptions

* Temporal tests for total/round related to bug 3141

* tweak tests, fix wording

* don't use unnecessary temporalHelpers

* update tests to include Temporal issues 3148 and 3149

* move tests, update descriptions

* rename some other files

* move new Temporal tests into intl-land

* Actually commit ptomato typo change requests
2025-09-23 19:56:43 +00:00
Mark S. Miller
822589b1ef
[nonextensible-applies-to-private] Adding private field to non-extensible object throws (#4577)
* [nonextensible-applies-to-private] Adding private field to non-extensible object throws

* add feature nonextensible-applies-to-private

* extending tests in response to reviewer suggestions

* use const instead of let
2025-09-22 12:58:55 -07:00
Linus Groh
e0d8f66a2b Add missing include to WeakMap.prototype.getOrInsertComputed() test 2025-09-18 13:35:51 -07:00
Philip Chimento
6251b55fc6 Reinstate bug numbers as URLs in frontmatter info
The history of why these tests exist can be useful context for future
consumers of the test suite.
2025-09-17 15:51:37 -07:00
André Bargull
dfe2f39a46 Remove test data for non-exported test 2025-09-17 13:25:21 -07:00
André Bargull
7ec30cc749 Replace SpiderMonkey-specific parseModule in async-functions/async-contains-unicode-escape.js and fix a test bug 2025-09-17 13:25:21 -07:00
André Bargull
d90061929a Replace SpiderMonkey-specific parseModule in expressions/optional-chain-first-expression.js 2025-09-17 13:25:21 -07:00
André Bargull
0ee9b57cba Enable strict mode testing for sm/JSON/parse-with-source.js 2025-09-17 13:25:21 -07:00
André Bargull
15be7166d5 Add missing feature tag for json-parse-with-source 2025-09-17 13:25:21 -07:00
André Bargull
6ed990708f Enable strict mode testing for sm/WeakMap and add missing feature tag 2025-09-17 13:25:21 -07:00
André Bargull
85f840d474 Enable strict mode testing for sm/TypedArray 2025-09-17 13:25:21 -07:00
André Bargull
083c373141 Enable strict mode testing for sm/Temporal 2025-09-17 13:25:20 -07:00
André Bargull
7b41001747 Enable strict mode testing for sm/syntax 2025-09-17 13:25:20 -07:00
André Bargull
d1cac014ab Enable strict mode testing for sm/Symbol 2025-09-17 13:25:20 -07:00
André Bargull
4e85cd06bd Enable strict mode testing for sm/String 2025-09-17 13:25:20 -07:00
André Bargull
eba013851c Enable strict mode testing for sm/strict 2025-09-17 13:25:20 -07:00
André Bargull
ddfdf9773e Enable strict mode testing for sm/statements 2025-09-17 13:25:20 -07:00
André Bargull
7453cbb760 Enable strict mode testing for sm/Set 2025-09-17 13:25:20 -07:00
André Bargull
84b567da81 Enable strict mode testing for sm/regress 2025-09-17 13:25:20 -07:00
André Bargull
a0f3f2f9b5 Enable strict mode testing for sm/RegExp 2025-09-17 13:25:20 -07:00
André Bargull
b0298167c9 Enable strict mode testing for sm/Reflect 2025-09-17 13:25:20 -07:00
André Bargull
d42f9fab12 Enable strict mode testing for sm/Proxy 2025-09-17 13:25:20 -07:00
André Bargull
1b58c83e0a Enable strict mode testing for sm/Promise 2025-09-17 13:25:20 -07:00
André Bargull
addfc1f0f0 Enable strict mode testing for sm/PrivateName 2025-09-17 13:25:20 -07:00
André Bargull
14e84721c9 Enable strict mode testing for sm/object 2025-09-17 13:25:20 -07:00
André Bargull
cd870e9520 Enable strict mode testing for sm/Number 2025-09-17 13:25:20 -07:00
André Bargull
a216e703d1 Enable strict mode testing for sm/misc 2025-09-17 13:25:20 -07:00
André Bargull
10f049068e Enable strict mode testing for sm/Math 2025-09-17 13:25:20 -07:00
André Bargull
87b006b65a Enable strict mode testing for sm/Map 2025-09-17 13:25:20 -07:00
André Bargull
221ea2b0b7 Enable strict mode testing for sm/literals 2025-09-17 13:25:20 -07:00
André Bargull
27b61f051b Enable strict mode testing for sm/lexical-environment 2025-09-17 13:25:20 -07:00
André Bargull
1b4972e329 Enable strict mode testing for sm/JSON 2025-09-17 13:25:20 -07:00
André Bargull
62310eaf2a Enable strict mode testing for sm/Iterator 2025-09-17 13:25:20 -07:00
André Bargull
91bf17ace8 Enable strict mode testing for sm/global 2025-09-17 13:25:20 -07:00