Quench.
TEST262CONFORMANCE

blog / · 3 min read · conformance

4,367 class tests in two days, and what a skip list hides

Driving one test262 directory from 44 passing tests to all 4,367 taught us more about denominators than about classes.

test262 is the official ECMAScript conformance suite: more than 50,000 files, each one a small program that must run, throw, or fail to parse in a precisely specified way. In July 2026 Quench was a tree-walking interpreter with one rule: no bytecode, no JIT, nothing clever until conformance is done.

We split the suite into stages, one per directory, and worked through them in order. Stage 16 is the class statement tests.

test262 stage 16 (class statements), passing tests01,1752,3503,5254,70021 Jul22 Jul23 Jul23 Jul23 Jul23 Jultests passing, by commit4,367
Pass counts as written in commit messages, 21 to 23 July 2026. The third point is 798 of 844: for most of 22 July the runner only saw 844 of the tests.

Forty-four to 4,367 in two days looks like a hockey stick. It is partly real work and partly a lesson.

What the real work was

Class tests are a stress test for everything around classes. Private names, static blocks, computed keys, accessors, super in every position, and generator and async methods. A few of the fixes from those two days:

  • Deep recursion. The interpreter had been recursive in Rust, so deep JavaScript recursion overflowed the native stack. On 9 July it moved to an explicit work stack (a Vec of pending steps).
  • Generators by replay. One commit is titled "Count nested yields in generator replay". The title suggests that at that point a generator resumed by re-running its body and skipping the yields it had already passed. It was slow and it was correct enough to pass, which was the goal that month.
  • Thrown values out of band. A fix on 12 July snapshots the pending thrown value around ToPrimitive, because a stale exception from an earlier conversion was leaking into a later one.

What the lesson was

Look at the middle of the chart. On 22 July the count goes 511 of 4,367, then 644 of 862, then 798 of 844. The numerator rose and the denominator fell. The runner was skipping whole groups of files, so "94.5%" that evening meant 94.5% of the tests we had chosen to look at.

It had happened at a larger scale two days earlier. On 20 July a commit announced that all 93 stages were at 100%. That commit changed one file: the skip list. On 22 July we added a tool that counted honestly across every directory, and its first report read:

23/122 stages done, 1870/48581 tests passing (3.8%)

Both statements were true. Every stage passed every test it ran, and the engine passed 3.8% of the suite.

100%
20 July

stages passing, with skips

3.8%
22 July

of all 48,581 tests

4,367
23 July

class tests, none skipped

The rules that came out of it

Three habits date from that week and are still how Quench counts conformance:

  1. The denominator is the suite. A pass rate is reported against every file in the directory. Skipped is a failure with a name.
  2. Skips carry a reason and an owner. The skip list records why each entry is there, and the list may only shrink. The same shrink-only rule later spread to every debt list in the repository.
  3. A passing test never starts failing. A change that turns a green test red does not land, whatever else it fixes.

By 23 July stage 16 was at 4,367 of 4,367 with nothing skipped. The interpreter underneath was still slow, and still a tree walker. That was fine. The plan was to make it correct first, and August was about to make "first" a lot more interesting.

Try it

Quench builds from source with Cargo and runs TypeScript, JavaScript and WebAssembly.

Build and run

Work on it

Interpreter, JIT, AOT, GC, Node APIs. Every claim on this blog has a measurement you can rerun.

Where to start

Follow it

New posts land here as the engine moves. Star the repository or subscribe to the feed.

Star on GitHub Feed