-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support Node 22 & 23 #331
Support Node 22 & 23 #331
Conversation
Changes the default script timeout for Test262 from 30s to 60s to accommodate longer tests we now have. By changing this timeout in `runtest262.mjs` instead of `npm run test262`, we restore the ability for an IDE debugger like VS Code to use `npm run test262` with a longer `TIMEOUT` environment variable to ensure that debug sessions can be much longer than one minute.
bd2c7df
to
dc22448
Compare
23d6854
to
8aba37c
Compare
Updates tests to handle Node 22 & 23, including newly-working tests. Also removes expected-failure references to a few tests that were removed recently.
The previous commit 19b00b2 was a bit too overzealous in removing saving primordials, because saving was actually needed in the case of `DurationFormat`'s `format` and `formatToParts` methods. This commit restores saving these methods before we polyfill them.
In Node 23, offset time zone IDs are now supported by `Intl.DateTimeFormat`. This commit changes the polyfill to handle these IDs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Much appreciated! I'll cut the new release now.
# temporal-test262-runner doesn't support the $262 global object | ||
intl402/DateTimeFormat/proto-from-ctor-realm.js |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note, I added this in #282 in order to be able to support js-temporal/temporal-test262-runner#19, but then we decided to stick to npm releases of temporal-test262-runner only. When we update temporal-test262-runner, we'll need to add this back in.
Support Node 22 & 23. In addition to changing expected failures files for bugs that Node fixed, there were two Node changes that required polyfill code changes:
Intl.DurationFormat
, and this PR fixes an infinite recursive loop (accidentally introduced in 19b00b2) that occurred if a nativeIntl.DurationFormat
was present.Fixes #323.