ECMA-262 in Lean

One run of test262 on the engine · suite.tsv

test262

test262 is TC39's conformance suite. This page reports one run of it on the engine, ecma-run at commit 4340362, test262 at 2e58f87d8, on 2026-11-19: 42,967 of the 43,521 tests run pass (98.73%), counting a test that passes in either of two passes.

Totals

42,967 of the 43,521 tests run pass (98.73%), counting a test as passing if it passes in either of the two passes below. No test fails, or stops, for a reason of the specification layer: every test that does not pass stopped at a limit of the engine or ran out of time or memory.

The first pass

Every test, under 60 s of wall clock, a store of 512 MB and 2 GB of memory per test: 42,792 pass (98.32% of the tests run).

ResultTestsShare of the tests run
pass42,79298.32%
stop4741.09%
timeout2550.59%

The second pass

The 729 tests that hit one of those limits were run again with 600 s of wall clock, a store of 2 GB and 3 GB of memory per test: 175 pass; 554 still do not pass (458 stop, 96 timeout).

Why the store has a ceiling. The engine's store only grows: every value the machine makes stays in it, and no cell is ever freed, so the memory a run uses grows with the steps it takes. ecma-run therefore stops a run whose store reaches a ceiling (--max-heap, a stop at an implementation limit) rather than let it take the machine's memory.

What a pass is

The runner (crates/test262-runner) runs each test on ecma-run, the engine's whole-program driver, after its harness (assert.js, sta.js, doneprintHandle.js for an async test, then the test's includes) run as Scripts in the same realm. A test runs twice, in non-strict code and in strict code ("use strict"; before the test alone), unless its flags say otherwise: once for onlyStrict, noStrict or raw (raw without the harness), and once, as a module, for module. A run passes when it completes normally, or, for a negative test, throws an error of the expected constructor (a parse negative test is only parsed); an async test passes when its $DONE prints Test262:AsyncTestComplete. The test passes when every run passes, and counts once, under the worse of its runs; when the first run does not pass for want of an answer (a stop, a time-out, or the test host lacking something), the second is not run. Every run executes the test's own assertions, the harness's functions that throw a Test262Error. A test over the wall clock or the memory cap is a time-out.

What is not run, and why

The run is the stage suite of tests/test262/suite.conf. It runs the directories annexB, built-ins, harness, language, staging; not intl402 (the configuration's header: intl402 is ECMA-402.).

Left out of those directories ([exclude]):

5,473 tests are not run because they need a feature the configuration leaves out ([skip-features]; a test that needs several counts under each, 125 do), by the reason the configuration gives:

The configuration gives no reason for staging/sm.

Every test that does not pass after the second pass, by cause (554)

A test's result here is the second pass's where it was run again, else the first's.

CauseWhere it liesTests
Failuresthe specification layer0
Stops of the specification's machinethe specification layer0
Stops at an implementation limitthe engine458
Time-outsthe engine96
Unsupportedthe engine0

Failures

None.

Stops of the specification's machine

None.

Stops at an implementation limit (458)

The engine stopped where the specification would go on: a limit the claim allows (What is proved).

Time-outs (96)

The test took longer than the wall-clock limit or more memory than the cap.

Unsupported

None.

Passing only in the second pass (175)

Tests that did not pass under the first pass's limits and pass under the second's, by what the first pass recorded, then by directory.

By directory

Two levels of test262's test/, a test passing if it passes in either pass; a row is marked where a test does not pass.

DirectoryRunPassNot passingNot runPass rate
annexB/built-ins21521232698.60%
annexB/language844844100.00%
built-ins/AbstractModuleSource008–
built-ins/AggregateError2525100.00%
built-ins/Array3,0833,077699.81%
built-ins/ArrayBuffer19219229100.00%
built-ins/ArrayIteratorPrototype2727100.00%
built-ins/AsyncDisposableStack104104100.00%
built-ins/AsyncFromSyncIteratorPrototype3838100.00%
built-ins/AsyncFunction1818100.00%
built-ins/AsyncGeneratorFunction2323100.00%
built-ins/AsyncGeneratorPrototype4848100.00%
built-ins/AsyncIteratorPrototype1313100.00%
built-ins/Atomics3803746998.42%
built-ins/BigInt7777100.00%
built-ins/Boolean5151100.00%
built-ins/DataView54954911100.00%
built-ins/Date6026028100.00%
built-ins/DisposableStack9393100.00%
built-ins/Error585835100.00%
built-ins/FinalizationRegistry4747100.00%
built-ins/Function48848712199.80%
built-ins/GeneratorFunction2323100.00%
built-ins/GeneratorPrototype6161100.00%
built-ins/Infinity66100.00%
built-ins/Iterator684678699.12%
built-ins/JSON166166100.00%
built-ins/Map204204100.00%
built-ins/MapIteratorPrototype1111100.00%
built-ins/Math327327100.00%
built-ins/NaN66100.00%
built-ins/NativeErrors9494100.00%
built-ins/Number340340100.00%
built-ins/Object3,4113,411100.00%
built-ins/Promise64364389100.00%
built-ins/Proxy311311100.00%
built-ins/Reflect153153100.00%
built-ins/RegExp1,8791,42945076.05%
built-ins/RegExpStringIteratorPrototype1717100.00%
built-ins/Set383383100.00%
built-ins/SetIteratorPrototype1111100.00%
built-ins/ShadowRealm0064–
built-ins/SharedArrayBuffer104104100.00%
built-ins/String1,2231,223100.00%
built-ins/StringIteratorPrototype77100.00%
built-ins/SuppressedError2222100.00%
built-ins/Symbol9898100.00%
built-ins/Temporal004616–
built-ins/ThrowTypeError1414100.00%
built-ins/TypedArray1,4451,4387899.52%
built-ins/TypedArrayConstructors7367351299.86%
built-ins/Uint8Array68682100.00%
built-ins/WeakMap141141100.00%
built-ins/WeakRef2929100.00%
built-ins/WeakSet8585100.00%
built-ins/decodeURI55441180.00%
built-ins/decodeURIComponent56451180.36%
built-ins/encodeURI3127487.10%
built-ins/encodeURIComponent3127487.10%
built-ins/eval1010100.00%
built-ins/global2929100.00%
built-ins/isFinite1515100.00%
built-ins/isNaN1515100.00%
built-ins/parseFloat5453198.15%
built-ins/parseInt5554198.18%
built-ins/undefined88100.00%
harness117116199.15%
language/arguments-object2612612100.00%
language/asi102102100.00%
language/block-scope145145100.00%
language/comments5250296.15%
language/computed-property-names4848100.00%
language/destructuring1919100.00%
language/directive-prologue6262100.00%
language/eval-code347347100.00%
language/export33100.00%
language/expressions10,75710,7411639999.85%
language/function-code217217100.00%
language/future-reserved-words5555100.00%
language/global-code4242100.00%
language/identifier-resolution1414100.00%
language/identifiers268267199.63%
language/import1616113100.00%
language/keywords2525100.00%
language/line-terminators4141100.00%
language/literals536532499.25%
language/module-code5955954100.00%
language/punctuators1111100.00%
language/reserved-words2727100.00%
language/rest-parameters1111100.00%
language/source-text11100.00%
language/statementList8080100.00%
language/statements9,3839,365181699.81%
language/types113113100.00%
language/white-space6767100.00%
staging44100.00%
staging/Temporal002–
staging/Uint8Array11100.00%
staging/built-ins88100.00%
staging/decorators007–
staging/explicit-resource-management5353100.00%
staging/set-methods33100.00%
staging/source-phase-imports002–
staging/top-level-await11100.00%

The run

engine
ecma-run built from commit 4340362 of this repository
test262
2e58f87d8350ad51224617a041c6e041d52f8444
selection
tests/test262/suite.conf, 48,994 tests
first pass
2026-11-19; 60 s of wall clock, a store of 512 MB and 2 GB of memory per test; 44 jobs at a time; built and run on Linux x86_64 (Xeon w9-3575X, 44 cores); the second pass reruns every test the first did not pass
command
target/release/test262-runner --run .lake/build/bin/ecma-run --mode default --stage suite --serve -j 44 --no-compare --timeout 60 --rss-cap-mb 2048 --serve-max-rss-mb 1024
runner build
b288f1f963f354dc (the hash of the tools and the run's configuration, as crates/test262-runner records it)
second pass
2026-11-19; the 729 tests the first pass did not pass; 600 s of wall clock, a store of 2 GB and 3 GB of memory per test; 36 jobs at a time; runner build b288f1f963f354dc
command
target/release/test262-runner --run .lake/build/bin/ecma-run --mode default --stage suite --serve -j 36 --no-compare --timeout 600 --rss-cap-mb 3072 --serve-max-rss-mb 1024 --run-arg --max-heap --run-arg 2048 --tests-from results/head-rerun.txt
record
tests/test262/results/suite.tsv: this page is made from it (scripts/test262_report.py)