Skip to content

Test262 update#1986

Merged
rbri merged 7 commits intomozilla:masterfrom
HtmlUnit:test262_update
Sep 3, 2025
Merged

Test262 update#1986
rbri merged 7 commits intomozilla:masterfrom
HtmlUnit:test262_update

Conversation

@rbri
Copy link
Copy Markdown
Collaborator

@rbri rbri commented Jul 22, 2025

This

  • updates the version of the test262 project in use to the latest one (3fd4ec27f1798ebecafc73b354a45dcdda9bde29)
  • adds some missing folders to our setup and adjusts the UNSUPPORTED_FEATURES

Overall we now run 103.018 tests (instead of 99.554); and we have 2.946 new passing tests.

@rbri rbri force-pushed the test262_update branch from 2c18a9b to f4d74c3 Compare July 22, 2025 15:45
@rbri
Copy link
Copy Markdown
Collaborator Author

rbri commented Jul 22, 2025

sorry will fix that tomorrow....

@rbri rbri force-pushed the test262_update branch from f4d74c3 to e63cfa4 Compare July 23, 2025 14:46
@gbrail
Copy link
Copy Markdown
Collaborator

gbrail commented Jul 24, 2025

Interesting -- can we add to the commit message why we are changing this -- since we don't support "upsert" yet, it allows more test cases to run, yes?

@rbri
Copy link
Copy Markdown
Collaborator Author

rbri commented Jul 24, 2025

oh, there was no real reasoning behind, i was curious to figure out if i'm able to do the update at all. And as second step i tried to figure out how many of the tests are failing because of const in lool (only some).

Another Motivation was the #1397. Will try to get in contact with @camnwalter to see if we can do this together.

@rbri rbri force-pushed the test262_update branch from e63cfa4 to 1c41c2b Compare July 25, 2025 11:40
@gbrail
Copy link
Copy Markdown
Collaborator

gbrail commented Jul 26, 2025

I'm going to be travelling an bit and won't keep up with the sudden increase in PR volume (thanks everyone!) You are free to merge this and other things that you are happy with!

@rbri
Copy link
Copy Markdown
Collaborator Author

rbri commented Sep 1, 2025

@gbrail, @andreabergia @anivar have done a bunch of updates (see the description on top). Please have a look....

prototype/getOrInsert/returns-value-normalized-zero-key.js
built-ins/Map 35/204 (17.16%)
prototype/getOrInsertComputed 19/19 (100.0%)
prototype/getOrInsert 14/14 (100.0%)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How should this be interpreted?
Before: 10 tests in the prototype/getOrInsert were failing (and at least one passing)
Now: all tests in the prototype/getOrInsert are failing.
Is this the correct interpetion?


built-ins/NativeErrors 36/139 (25.9%)
AggregateError/newtarget-proto-fallback.js
AggregateError/proto-from-ctor-realm.js
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume, that these tests are now removed, because AggregateError is an unsupported feature?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

they are moved

Image

prototype/getOrInsert/returns-value-if-key-is-not-present-object-key.js
prototype/getOrInsert/returns-value-if-key-is-not-present-symbol-key.js
prototype/getOrInsert/returns-value-if-key-is-present-object-key.js
prototype/getOrInsert/returns-value-if-key-is-present-symbol-key.js
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not 100% sure, if I got it, but a removed line means, that the test is no longer excluded and will pass now?

Can you explain me, why an update of the test262 with nearly no other code changes lets them pass now?
Am I missing something or was the file not up-to-date on master?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not 100% sure, if I got it, but a removed line means, that the test is no longer excluded and will pass now?

excluded things are marked with a ~ in front, all explicit listed tests are executed and failing. Will have a look at these - but keep in mind i only have regenerated the file (and added some more folder)

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See below, the diff is a bit confusing because i have added the Uint8Array tests.

The tests still failing, the new WeakMap section i below

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the explanations. LGTM

@rbri rbri merged commit c242a2e into mozilla:master Sep 3, 2025
3 checks passed
@rbri
Copy link
Copy Markdown
Collaborator Author

rbri commented Sep 3, 2025

as nobody complains and i think having some (2.946) more passing tests will help as at least a bit while doing all that major changes on our list

@rbri rbri deleted the test262_update branch September 3, 2025 16:51
SuperMonster003 pushed a commit to SuperMonster003/Rhino-For-AutoJs6 that referenced this pull request Sep 10, 2025
* updates the version of the test262 project in use to the latest one (3fd4ec27f1798ebecafc73b354a45dcdda9bde29)
* adds some missing folders to our setup and adjusts the UNSUPPORTED_FEATURES

(cherry picked from commit c242a2e)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants