Skip to content

Fix some test262 failures#2310

Merged
lahma merged 3 commits into
sebastienros:mainfrom
lahma:fix/test262-easy-wins
Mar 6, 2026
Merged

Fix some test262 failures#2310
lahma merged 3 commits into
sebastienros:mainfrom
lahma:fix/test262-easy-wins

Conversation

@lahma

@lahma lahma commented Mar 6, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

lahma and others added 3 commits March 5, 2026 23:42
Pass the inferred class binding name into ClassDefinitionEvaluation so
SetFunctionName runs before static initializers execute, matching the
ECMAScript spec step ordering (step 18 before step 31).

Also fix DefineField to pass receiver as thisObject instead of as an
argument when calling field initializers.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Remove the artificial limit of 99 fraction digits by enabling the
existing Dtoa bignum infrastructure for DtoaMode.Fixed. The fast
path was already commented out; now it falls through to BignumDtoa
which handles arbitrary precision.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Track the last-visited key/value after each callback and adjust the
iteration position to handle entries being deleted, re-added, or
shifted during iteration. Also add a _done flag to iterators so that
once exhausted, they stay done even if new entries are added.

Fixes: Map.forEach delete-then-readd, MapIterator mutable iteration,
Set.forEach delete-then-readd.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@lahma
lahma merged commit b38b9e8 into sebastienros:main Mar 6, 2026
7 of 8 checks passed
@lahma
lahma deleted the fix/test262-easy-wins branch March 6, 2026 06:24
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.

1 participant