387 Commits

Author SHA1 Message Date
André Bargull
d45036711c Add Temporal intrinsics 2025-07-07 15:47:37 +02:00
André Bargull
c62f9f7fba Add Intl intrinsics 2025-07-07 15:47:37 +02:00
André Bargull
086aab47dd Add Annex B intrinsics 2025-07-07 15:47:37 +02:00
André Bargull
5b249ecbbd Fix intrinsic source for AsyncIteratorPrototype and RegExpStringIteratorPrototype 2025-07-07 15:47:37 +02:00
Linus Groh
dc40377cb4 Fix two leftover uses of Temporal.ZonedDateTime.prototype.timeZone 2025-07-07 14:44:08 +02:00
duncan.macgregor
bd472562c8 Change deepEqual.js as Rhino doesn't support Array spreading. 2025-05-30 03:27:41 -07:00
Richard Gibson
99867ff618
harness: Simplify verifyCallableProperty (#4507)
Ref #4468
2025-05-28 20:53:15 +00:00
André Bargull
a1222e0dc7 Remove unused definitions from non262-expressions-shell.js 2025-05-28 15:58:01 +02:00
André Bargull
0633915e30 Use standard test262 harness functions in non262-JSON-shell.js 2025-05-28 15:58:01 +02:00
André Bargull
0ba71a3fea Remove unused non262-String-shell.js 2025-05-28 15:58:01 +02:00
André Bargull
fea819475f Replace non262-RegExp-shell.js definitions and then remove it 2025-05-28 15:58:01 +02:00
André Bargull
fb71bb2094 Remove non262-extensions-shell.js 2025-05-28 15:58:01 +02:00
André Bargull
e778def1d1 Remove reportMatch 2025-05-28 15:58:01 +02:00
André Bargull
a06e66989b Remove printBugNumber, inSection, printStatus, and writeHeaderToLog empty functions 2025-05-28 15:58:01 +02:00
André Bargull
e0f3a70c5a Move completesNormally and raisesException to non262-strict-shell.js 2025-05-28 15:58:01 +02:00
André Bargull
1b63fba5ca Remove 'harness/sm/non262-object-shell.js' with unused functions 2025-05-28 15:58:01 +02:00
André Bargull
e8b9a6a1d9 Remove unused 'clone_object_check' 2025-05-28 15:58:01 +02:00
André Bargull
965e505fb8 Remove a Gecko profiler specific test case 2025-05-28 15:58:01 +02:00
André Bargull
2497ed0ae9 Replace another deepEqual function from sm-staging
Replace the `deepEqual` function with `assert.compareArray` resp.
`verifyProperty`.

Also remove the second part of "sm/strict/15.4.5.1.js", because it's
terribly out-dated w.r.t. the SpiderMonkey implementation of Array
objects.
2025-05-28 15:58:01 +02:00
André Bargull
43670a1912 Replace assertDeepEq with assert.deepEqual 2025-05-28 15:58:01 +02:00
André Bargull
bbbc23cd41 Don't test error messages in staging/sm 2025-05-28 15:58:01 +02:00
Philip Chimento
37ebe00a15 Remove usage of Object.hasOwn in helper files
Instead use the easily available old-fashioned way, calling the method
on Object.prototype.
2025-05-15 11:42:44 +02:00
Richard Gibson
25278a150d
harness: Add a verifyCallableProperty helper (#4468) 2025-05-14 12:08:11 -04:00
Philip Chimento
84f820258b harness: Remove hidden-constructors harness file
The objects it provides are also available in another harness file,
wellKnownIntrinsicObjects.js. There's no point in duplicating that in the
harness. Rewrite each test that used hidden-constructors.js to use
getWellKnownIntrinsicObject instead.
2025-03-11 18:14:55 -07:00
Philip Chimento
2af27af915 harness: Add a function to get well-known intrinsic objects
wellKnownIntrinsicObjects.js now exposes a getWellKnownIntrinsicObject()
function which returns the object corresponding to a key like %Array%. If
the object is not provided by the implementation, or not accessible, it
throws a Test262Error. This is so that tests depending on that intrinsic
object can easily fail.
2025-03-11 18:14:55 -07:00
Philip Chimento
e133564cfa harness: Update list of well-known intrinsics
Looks like this list hasn't been updated in a while. Add
%AsyncGeneratorPrototype%, %GeneratorPrototype%, %Iterator%,
%IteratorHelperPrototype%, and %WrapForValidIteratorPrototype%.

%IteratorPrototype% is no longer a well-known intrinsic; I guess it was
removed because ever since iterator helpers it's accessible as
%Iterator.prototype%.

%Iterator% is available as the global property Iterator, but include a
fallback for implementations that haven't yet implemented iterator
helpers.
2025-03-11 18:14:55 -07:00
Philip Chimento
18ce488401 harness: Correct sources of %{Async,}GeneratorFunction%
As far as I can tell these are wrong, giving %GeneratorFunction.prototype%
and %AsyncGeneratorFunction.prototype% instead. These new expressions are
how MDN claims you can get the intrinsics.
2025-03-11 18:14:55 -07:00
Philip Chimento
a4536dc65f harness: Add clarifying comments about inaccessible intrinsics
As far as I know, %AsyncFromSyncIteratorPrototype% and
%ForInIteratorPrototype% are not (and not intended to be) accessible to
ECMAScript user code, so they are impossible to test directly. Add a
clarifying comment, and make the source expression consistent ('' vs.
'undefined').
2025-03-11 18:14:55 -07:00
Philip Chimento
44d71fbe7d Temporal: Test coverage for rejecting too large dates in PlainMonthDay strings
This adds coverage for the normative change in
https://github.com/tc39/proposal-temporal/pull/3054, which specifies that
implementations must throw on out-of-range dates in RFC 9557 strings for
non-ISO calendars.
2025-02-21 18:47:44 -08:00
Ms2ger
a37cb9c206 Update staging/sm 2025-01-13 17:17:15 +01:00
André Bargull
7bc853660a Temporal: Coverage for Temporal.PlainYearMonth 2025-01-09 16:33:51 -08:00
André Bargull
900c80295e Don't call assert.deepEqual.format when the assertion will succeed 2024-12-18 16:15:40 +01:00
Ms2ger
6ee9579acb Import tests from SpiderMonkey 2024-12-09 13:35:08 -08:00
Ms2ger
6ec99623c2 Use an IIFE in deepEqual.js
This code currently prevents tests from using |var join|.
2024-12-09 13:35:08 -08:00
Ms2ger
62d48cf9ed Check for identity of functions in deepEqual 2024-12-09 13:35:08 -08:00
André Bargull
e7024c1761 Disable grouping for numeric units in Intl.DurationFormat 2024-11-07 14:19:18 -08:00
Richard Gibson
c54b89e92e
harness/deepEqual.js: Improve formatting and align with base assert (#4253) 2024-10-16 16:59:47 -04:00
Peter Hoddie
d6155b6ef2 add verifyPrimordialProperty 2024-10-11 12:45:30 -07:00
Linus Groh
f1a670ff59 Fix compareArray.js harness tests
Also a typo in one of the messages.
2024-09-27 11:43:57 +02:00
Marko Lahma
72ff7d1269 Add names for expected outcomes in compareArray.js 2024-09-25 14:02:32 -07:00
Philip Chimento
0c784ef954 Remove async-gc harness
This is now unused, and there is no way to implement it without using the
cleanupSome proposal (see previous commit) which has been withdrawn.

Closes: #3920
2024-09-25 10:06:15 -07:00
Richard Gibson
0c7af4685f harness/propertyHelper.js: Check the new property value chosen by isWritable for collision 2024-09-23 15:14:59 -07:00
Richard Gibson
07a2c2501e harness/propertyHelper.js: Capture primordials that might be affected at runtime by verification
Ref https://github.com/tc39/test262/pull/4234#discussion_r1771684267
2024-09-23 15:14:59 -07:00
Ioanna M Dimitriou H
fc49c9ce16
Move function MayNeedBigInt to RAB helper file and inline WriteToTypedArray. (#4211) 2024-09-03 16:23:23 +02:00
José Julián Espina
dde3050bdb
Fix test regression in asyncHelpers.js (#4197) 2024-08-19 12:33:17 -04:00
Linus Groh
984df1f3db Remove unused harness/timer.js 2024-08-14 08:37:46 -07:00
Richard Gibson
feb400c685 harness/asyncHelpers.js: Update throwsAsync to not succeed on a bad thenable
Fixes #4186
2024-08-02 08:52:05 +02:00
Richard Gibson
f83c1b9387 harness/asyncHelpers.js: Further reduce the size of assert.throwsAsync 2024-08-01 12:10:32 -04:00
Richard Gibson
fa3d0246e7 harness/asyncHelpers.js: Reduce the size of assert.throwsAsync 2024-08-01 11:42:34 -04:00
Richard Gibson
0b61e98564 harness/asyncHelpers.js: Clean up assert.throwsAsync failure messages
* Remove mention of an "inner" promise/thenable.
2024-08-01 11:41:25 -04:00