6950 Commits

Author SHA1 Message Date
Richard Gibson
cf4c281a38 Improve license linting
* Bump max year to $now + 1.
* Emit a more specific error for year range where a single year is expected.
2025-04-04 12:47:48 -04:00
Richard Gibson
2f937a61fd Update features/includes test linting to report all unused/unrecognized values
(rather than just the first)
2025-04-04 12:47:48 -04:00
Richard Gibson
1e2f389caa Avoid truncating test lint annotations
Fixes #4448
2025-04-04 12:47:48 -04:00
Ujjwal Sharma
4ba104a21c Add test case for non-continental time zones
Adds a test that verifies that Intl.supportedValuesOf('timeZones')
includes those timezones those don't correspond to any continent. This
includes the oceanic Etc/* timezones and UTC.

Fixes: https://github.com/tc39/ecma402/issues/778
2025-03-27 17:38:56 +01:00
Ujjwal Sharma
6e311e4fb2 Update link to chakra bug tracker 2025-03-26 14:30:50 -07:00
Ujjwal Sharma
8067480cf3 Remove chakra jobs from CI config 2025-03-26 14:30:50 -07:00
Ujjwal Sharma
ea1724093f Remove chakra npm scripts 2025-03-26 14:30:50 -07:00
Ujjwal Sharma
8f7c679b9a
Add a test for ecma402#877 time zone canonicalization (#4437) 2025-03-26 10:54:55 -04:00
Linus Groh
5de6fda53f Add Kiesel bug tracker to CONTRIBUTING.md 2025-03-25 12:19:07 -07:00
Kevin Ness
2e87ba7cb8 Add Boa to implementer list on CONTRIBUTING.md 2025-03-25 11:35:17 -07:00
Ujjwal Sharma
56e77d6325 Update link to test262-harness repo 2025-03-25 11:38:42 +01:00
André Bargull
c23091151f Prefer "islamic-tbla" over "islamic" for Hijri calendars
"islamic" is underspecified because it doesn't include any information
which location and algorithms should be used to approximate new moon
observations. Instead switch to "islamic-tbla".
2025-03-24 10:39:29 +01:00
André Bargull
c7bbdd435f Remove test data from other calendars 2025-03-24 10:36:18 +01:00
André Bargull
c9ab199907 Copy islamic-calendars.js into separate files for each calendar variant 2025-03-24 10:36:18 +01:00
André Bargull
f5bf9fdf2d Allow for implementation-defined Error properties
Various implementations (JSC, V8, SM) define additional properties on
Error instances. Adjust the test case to account for that.
2025-03-24 09:52:09 +01:00
André Bargull
ce7e72d210 Split addition-across-lunisolar-leap-months across calendars
Also remove unnecessary check for out-dated Chinese calendar data.
2025-03-19 13:51:31 +01:00
André Bargull
c12ea5c2d9 Remove old non-iso-calendars.js 2025-03-19 13:51:31 +01:00
André Bargull
7f61f1d73e Fix dangi calendar test case 2025-03-19 13:51:31 +01:00
André Bargull
367b207786 Fix chinese calendar test case 2025-03-19 13:51:31 +01:00
André Bargull
d2a0a9bda6 Fix islamic-rgsa calendar test case 2025-03-19 13:51:31 +01:00
André Bargull
e296fb39a6 Fix islamic calendar test case 2025-03-19 13:51:31 +01:00
André Bargull
450d9db1e2 Fix islamic-umalqura calendar test case 2025-03-19 13:51:31 +01:00
André Bargull
fc5b8568a0 Fix hebrew calendar test case 2025-03-19 13:51:31 +01:00
André Bargull
de5fd18406 Fix islamic-tbla calendar test case 2025-03-19 13:51:31 +01:00
André Bargull
ef8d9be0b0 Fix islamic-civil calendar test case 2025-03-19 13:51:31 +01:00
André Bargull
05b7f0fc75 Fix islamicc calendar test case 2025-03-19 13:51:31 +01:00
André Bargull
496b6c195f Fix indian calendar test case 2025-03-19 13:51:31 +01:00
André Bargull
9bf4e0f2f4 Fix ethiopic calendar test case 2025-03-19 13:51:31 +01:00
André Bargull
aae8f8a8d8 Fix ethioaa calendar test case 2025-03-19 13:51:31 +01:00
André Bargull
cc9cb90005 Fix coptic calendar test case 2025-03-19 13:51:31 +01:00
André Bargull
c7dba7860e Fix gregory calendar test case 2025-03-19 13:51:31 +01:00
André Bargull
e2349bd24a Fix persian calendar test case 2025-03-19 13:51:31 +01:00
André Bargull
b67d395ed5 Fix japanese calendar test case 2025-03-19 13:51:31 +01:00
André Bargull
c4b6ea79da Fix iso8601 calendar test case 2025-03-19 13:51:31 +01:00
André Bargull
467acc8ec8 Fix roc calendar test case 2025-03-19 13:51:31 +01:00
André Bargull
e493362aec Fix buddhist calendar test case 2025-03-19 13:51:31 +01:00
André Bargull
5c8013f45d Remove test data for other calendars 2025-03-19 13:51:31 +01:00
André Bargull
e627bd8090 Copy non-iso-calendars to calendar specific files 2025-03-19 13:51:31 +01:00
Tim Chevalier
ef4305ee4d
Fix comment (#4430) 2025-03-17 20:42:51 +00:00
André Bargull
d77a127c21 Fix expected maximumFractionDigits for compact notation
[[MaximumFractionDigits]] is set to zero in SetNumberFormatDigitOptions,
step 24.b.
2025-03-14 14:58:39 +01:00
André Bargull
4a611cbaca Fix expected value for UTC-like time zone
If `timeZone` should be preserved, then it can't be the same string as
`utcDateTime.timeZoneId`.
2025-03-14 11:39:12 +01:00
Philip Chimento
7708262a21 Update ESIDs of Temporal.*.prototype properties
These ESIDs were updated to use dots instead of dashes, to be more
consistent with the ESIDs of other properties.
2025-03-14 09:26:47 +01:00
Aurèle
3f10507650 Regenerate character class escape tests 2025-03-13 11:58:44 -07:00
Aurèle
05fbae4993 Fix Regex Character Class Escape Tests
For each character class escape (\d, \D, \s, \S, \w, \W), check
positive cases (the escape matches all characters it's supposed to
match) and negative cases (the escape doesn't match any of the
characters it should not match).  Each of these checks is also done in
Unicode mode and with the v flag.

This uses regenerate.js from the unicode-property-escapes-tests
repo to generate strings that contain exactly the characters that
are supposed to be matched or not matched for each escape.

Comparison is done with regex test instead of regex replace to
optimize the tests.

This is part of my work at the SYSTEMF lab at EPFL.

Avoid modifying the regenerate library object prototype.
2025-03-13 11:58:44 -07:00
Philip Chimento
48bb262183 Update UTC time zone canonicalization to match proposal-canonical-tz
The test for https://github.com/tc39/ecma402/pull/724 (added in
https://github.com/tc39/test262/pull/4328) didn't take the Time Zone
Canonicalization proposal into account; but it should, because that
proposal is stage 3.

As of that proposal, the [[TimeZone]] slot of DateTimeFormat gets the
case-regularized original identifier, no longer the primary identifier. So
the resolvedOptions().timeZone property also no longer returns the primary
identifier.
2025-03-12 17:28:07 -07:00
Philip Chimento
e611532c98 Fix final newline linter error 2025-03-12 17:06:01 -07:00
ayuan0828
e0739b76a7 decodeURIComponent test 2025-03-12 17:06:01 -07:00
ayuan0828
b5ce1ae754 Create throws-URIError.js 2025-03-12 17:06:01 -07:00
Tim Chevalier
0c2144e3e6 Temporal: Fix missing close quotation mark in error message 2025-03-12 15:33:09 -07: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