ECMA-262 in Lean

Spec issues · docs/spec-issues/examples/RESULTS.md

The examples' runs

Every example of the write-ups, run on the three engines and on the model: each run's exit status, standard output and standard error, exactly as recorded by scripts/spec_issues_run.py. The model's runs were made from this repository's build; the engines' runs are the record of the versions below.

Each run's exit status, standard output and standard error, exactly (absolute paths shortened).

Engine Version
V8 (node) v24.18.1 (V8 13.6.233.17-node.50)
SpiderMonkey (js140) JavaScript-C140.13.0
JavaScriptCore (bun) Bun 1.3.13+bf2e2cecf (JavaScriptCore of oven-sh/WebKit 4d5e75ebd84a14edbc7ae264245dcd77fe597c10)
the formal model (ecma-run) .lake/build/bin/ecma-run built from the checkout (its sources: the README)

A .js example is a Script: SpiderMonkey runs the file; node and bun run script-shim.cjs, which evaluates it with vm.runInThisContext (a Script in the main realm, not CommonJS or a Module):

// Evaluates the file named by argv[2] as a Script (ScriptEvaluation) in this realm.
const fs = require("node:fs"), vm = require("node:vm");
const file = process.argv[2];
vm.runInThisContext(fs.readFileSync(file, "utf8"), { filename: file });

A directory's main.mjs is a Module (node main.mjs, bun main.mjs, js140 -m main.mjs), run in the directory; the model runs Scripts only, on ecma-run's fixed host, which defines print.

01-number-multiply-zero-sign.js

V8 (node)

node script-shim.cjs 01-number-multiply-zero-sign.js: exit status 0

stdout:

-Infinity
-Infinity
Infinity
true

SpiderMonkey (js140)

js140 01-number-multiply-zero-sign.js: exit status 0

stdout:

-Infinity
-Infinity
Infinity
true

JavaScriptCore (bun)

bun script-shim.cjs 01-number-multiply-zero-sign.js: exit status 0

stdout:

-Infinity
-Infinity
Infinity
true

the formal model (ecma-run)

ecma-run 01-number-multiply-zero-sign.js: exit status 0

stdout:

normal: undefined
-Infinity
-Infinity
Infinity
true

02-gather-available-ancestors

V8 (node)

node main.mjs: exit status 0

stdout:

b starts
c throws
b ends
a rejected: c-error
b fulfilled

SpiderMonkey (js140)

js140 -m main.mjs: exit status 0

stdout:

b starts
c throws
b ends
a rejected: c-error
b fulfilled

JavaScriptCore (bun)

bun main.mjs: exit status 0

stdout:

b starts
b ends
c throws
a rejected: c-error
b fulfilled

03-builtin-async-return-value.js

V8 (node)

node script-shim.cjs 03-builtin-async-return-value.js: exit status 0

stdout:

fromAsync fulfils with [1,2]

SpiderMonkey (js140)

js140 03-builtin-async-return-value.js: exit status 0

stdout:

fromAsync fulfils with [1,2]

JavaScriptCore (bun)

bun script-shim.cjs 03-builtin-async-return-value.js: exit status 0

stdout:

fromAsync fulfils with [1,2]

the formal model (ecma-run)

ecma-run 03-builtin-async-return-value.js: exit status 0

stdout:

normal: [object #20741]
fromAsync fulfils with [1,2]

04-execute-module-tla-dispose

V8 (node)

node main.mjs: exit status 0

stdout:

end of module body
dispose b
dispose a
evaluation promise fulfilled

SpiderMonkey (js140)

js140 -m main.mjs: exit status 0

stdout:

rejected: SyntaxError: unexpected token: identifier

SpiderMonkey (js140)

js140 --enable-explicit-resource-management -m main.mjs: exit status 0

stdout:

rejected: SyntaxError: unexpected token: identifier

JavaScriptCore (bun)

bun main.mjs: exit status 0

stdout:

end of module body
dispose b
dispose a
evaluation promise fulfilled

05-parsetext-error-objects.js

V8 (node)

node script-shim.cjs 05-parsetext-error-objects.js: exit status 0

stdout:

true
true
true

SpiderMonkey (js140)

js140 05-parsetext-error-objects.js: exit status 0

stdout:

true
true
true

JavaScriptCore (bun)

bun script-shim.cjs 05-parsetext-error-objects.js: exit status 0

stdout:

true
true
true

the formal model (ecma-run)

ecma-run 05-parsetext-error-objects.js: exit status 0

stdout:

normal: undefined
true
true
true

06-dowait-sync-timeout.js

V8 (node)

node script-shim.cjs 06-dowait-sync-timeout.js: exit status 0

stdout:

timed-out
timed-out
0

SpiderMonkey (js140)

js140 06-dowait-sync-timeout.js: exit status 0

stdout:

timed-out
timed-out
0

JavaScriptCore (bun)

bun script-shim.cjs 06-dowait-sync-timeout.js: exit status 0

stdout:

timed-out
timed-out
0

the formal model (ecma-run)

ecma-run 06-dowait-sync-timeout.js: exit status 1

stdout:

throw: TypeError

07-typedarray-with-filter-bang.js

V8 (node)

node script-shim.cjs 07-typedarray-with-filter-bang.js: exit status 0

stdout:

with: TypeError
filter: TypeError after 2 calls

SpiderMonkey (js140)

js140 07-typedarray-with-filter-bang.js: exit status 0

stdout:

with: TypeError
filter: TypeError after 2 calls

JavaScriptCore (bun)

bun script-shim.cjs 07-typedarray-with-filter-bang.js: exit status 0

stdout:

with: TypeError
filter: no exception

the formal model (ecma-run)

ecma-run 07-typedarray-with-filter-bang.js: exit status 0

stdout:

normal: undefined
with: TypeError
filter: TypeError after 2 calls

08-islooselyequal-boolean-bang.js

V8 (node)

node script-shim.cjs 08-islooselyequal-boolean-bang.js: exit status 0

stdout:

dict == false: TypeError
true == {valueOf throws}: RangeError
1 == dict: TypeError

SpiderMonkey (js140)

js140 08-islooselyequal-boolean-bang.js: exit status 0

stdout:

dict == false: TypeError
true == {valueOf throws}: RangeError
1 == dict: TypeError

JavaScriptCore (bun)

bun script-shim.cjs 08-islooselyequal-boolean-bang.js: exit status 0

stdout:

dict == false: TypeError
true == {valueOf throws}: RangeError
1 == dict: TypeError

the formal model (ecma-run)

ecma-run 08-islooselyequal-boolean-bang.js: exit status 0

stdout:

normal: undefined
dict == false: TypeError
true == {valueOf throws}: RangeError
1 == dict: TypeError

09-atomics-waitasync-timeout-assert.js

V8 (node)

node script-shim.cjs 09-atomics-waitasync-timeout-assert.js: exit status 0

stdout:

true
timed-out, elapsed ≥ 0: true

SpiderMonkey (js140)

js140 09-atomics-waitasync-timeout-assert.js: exit status 3

stdout:

(nothing)

stderr:

09-atomics-waitasync-timeout-assert.js:9:17 TypeError: Atomics.waitAsync is not a function
Stack:
  @09-atomics-waitasync-timeout-assert.js:9:17

SpiderMonkey (js140)

js140 -P atomics_wait_async=true 09-atomics-waitasync-timeout-assert.js: exit status 0

stdout:

true
timed-out, elapsed ≥ 0: true

JavaScriptCore (bun)

bun script-shim.cjs 09-atomics-waitasync-timeout-assert.js: exit status 0

stdout:

true
timed-out, elapsed ≥ 0: true

the formal model (ecma-run)

ecma-run 09-atomics-waitasync-timeout-assert.js: exit status 0

stdout:

normal: undefined
true
timed-out, elapsed ≥ 0: true

10-utc-large-local-time.js

V8 (node)

node script-shim.cjs 10-utc-large-local-time.js: exit status 0

stdout:

8639987299200000
8640000000000000
NaN
NaN
NaN

SpiderMonkey (js140)

js140 10-utc-large-local-time.js: exit status 0

stdout:

8639987299200000
8640000000000000
NaN
NaN
NaN

JavaScriptCore (bun)

bun script-shim.cjs 10-utc-large-local-time.js: exit status 0

stdout:

8639987299200000
8640000000000000
NaN
NaN
NaN

the formal model (ecma-run)

ecma-run 10-utc-large-local-time.js: exit status 3

stdout:

stop: erratum GetUTCEpochNanosecondsNaN sec-getutcepochnanoseconds#0 4

11-regexp-lastindex-inside-surrogate-pair.js

V8 (node)

node script-shim.cjs 11-regexp-lastindex-inside-surrogate-pair.js: exit status 0

stdout:

non-empty: index 0, match length 2, first unit d83d, lastIndex 2
empty: index 0, match length 0, lastIndex 0
indices[0] [0,0]

SpiderMonkey (js140)

js140 11-regexp-lastindex-inside-surrogate-pair.js: exit status 0

stdout:

non-empty: index 0, match length 2, first unit d83d, lastIndex 2
empty: index 0, match length 0, lastIndex 0
indices[0] [0,0]

JavaScriptCore (bun)

bun script-shim.cjs 11-regexp-lastindex-inside-surrogate-pair.js: exit status 0

stdout:

non-empty: index 2, match length 1, first unit 78, lastIndex 3
empty: index 1, match length 0, lastIndex 1
indices[0] [1,1]

the formal model (ecma-run)

ecma-run 11-regexp-lastindex-inside-surrogate-pair.js: exit status 3

stdout:

stop: erratum GetMatchStringStartAfterEnd sec-getmatchstring#0 1

12-asyncblockstart-await-result.js

V8 (node)

node script-shim.cjs 12-asyncblockstart-await-result.js: exit status 0

stdout:

f fulfilled with 2

SpiderMonkey (js140)

js140 12-asyncblockstart-await-result.js: exit status 0

stdout:

f fulfilled with 2

JavaScriptCore (bun)

bun script-shim.cjs 12-asyncblockstart-await-result.js: exit status 0

stdout:

f fulfilled with 2

the formal model (ecma-run)

ecma-run 12-asyncblockstart-await-result.js: exit status 0

stdout:

normal: [object #19926]
f fulfilled with 2

13-promise-job-abrupt-completion.js

V8 (node)

node script-shim.cjs 13-promise-job-abrupt-completion.js: exit status 0

stdout:

handler 1
resolve(1) called; it throws
resolve(2) called; it throws
a later Job runs

SpiderMonkey (js140)

js140 13-promise-job-abrupt-completion.js: exit status 3

stdout:

handler 1
resolve(1) called; it throws
resolve(2) called; it throws
a later Job runs

stderr:

13-promise-job-abrupt-completion.js:9:80 Error: boom
Stack:
  Bad/<@13-promise-job-abrupt-completion.js:9:80
13-promise-job-abrupt-completion.js:9:80 Error: boom
Stack:
  Bad/<@13-promise-job-abrupt-completion.js:9:80

JavaScriptCore (bun)

bun script-shim.cjs 13-promise-job-abrupt-completion.js: exit status 1

stdout:

handler 1
resolve(1) called; it throws
resolve(2) called; it throws
a later Job runs

stderr:

error: boom
      at <anonymous> (13-promise-job-abrupt-completion.js:9:97)
error: boom
      at <anonymous> (13-promise-job-abrupt-completion.js:9:97)

Bun v1.3.13 (macOS arm64)

the formal model (ecma-run)

ecma-run 13-promise-job-abrupt-completion.js: exit status 3

stdout:

stop: erratum PromiseJobAbruptCompletion sec-jobs -

14-nativefunction-initialname.js

V8 (node)

node script-shim.cjs 14-nativefunction-initialname.js: exit status 0

stdout:

"a b"
"#x"
"[a b]"
class {}

SpiderMonkey (js140)

js140 14-nativefunction-initialname.js: exit status 0

stdout:

"a b"
"#x"
"[a b]"
class {}

JavaScriptCore (bun)

bun script-shim.cjs 14-nativefunction-initialname.js: exit status 0

stdout:

"a b"
"#x"
"[a b]"
class {}

the formal model (ecma-run)

ecma-run 14-nativefunction-initialname.js: exit status 0

stdout:

normal: undefined
"a b"
"#x"
"[a b]"
class {}

V8 (node)

node main.mjs: exit status 0

stdout:

main sees {"a":1}
probe sees {"a":1}
after other: {"a":1}

SpiderMonkey (js140)

js140 -m main.mjs: exit status 3

stdout:

(nothing)

stderr:

15-synthetic-module-link/main.mjs:6:26 SyntaxError: import attributes are not currently supported:
15-synthetic-module-link/main.mjs:6:26 import j from "./j.json" with { type: "json" };
15-synthetic-module-link/main.mjs:6:26 .........................^

SpiderMonkey (js140)

js140 --enable-import-attributes -m main.mjs: exit status 0

stdout:

main sees {"a":1}
probe sees {"a":1}
after other: {"a":1}

JavaScriptCore (bun)

bun main.mjs: exit status 0

stdout:

main sees {"a":1}
probe sees {"a":1}
after other: {"a":1}

20-dynamic-function-private-identifiers.js

V8 (node)

node script-shim.cjs 20-dynamic-function-private-identifiers.js: exit status 0

stdout:

body: SyntaxError
params: SyntaxError
eval: SyntaxError

SpiderMonkey (js140)

js140 20-dynamic-function-private-identifiers.js: exit status 0

stdout:

body: SyntaxError
params: SyntaxError
eval: SyntaxError

JavaScriptCore (bun)

bun script-shim.cjs 20-dynamic-function-private-identifiers.js: exit status 0

stdout:

body: SyntaxError
params: SyntaxError
eval: SyntaxError

the formal model (ecma-run)

ecma-run 20-dynamic-function-private-identifiers.js: exit status 0

stdout:

normal: undefined
body: SyntaxError
params: SyntaxError
eval: SyntaxError

21-identityescape-zwnj-zwj.js

V8 (node)

node script-shim.cjs 21-identityescape-zwnj-zwj.js: exit status 0

stdout:

U+200C: literal true, RegExp true, u SyntaxError
U+200D: literal true, RegExp true, u SyntaxError
U+200B: literal true, RegExp true, u SyntaxError
U+200E: literal true, RegExp true, u SyntaxError
U+61: literal true, RegExp true, u SyntaxError

SpiderMonkey (js140)

js140 21-identityescape-zwnj-zwj.js: exit status 0

stdout:

U+200C: literal true, RegExp true, u SyntaxError
U+200D: literal true, RegExp true, u SyntaxError
U+200B: literal true, RegExp true, u SyntaxError
U+200E: literal true, RegExp true, u SyntaxError
U+61: literal true, RegExp true, u SyntaxError

JavaScriptCore (bun)

bun script-shim.cjs 21-identityescape-zwnj-zwj.js: exit status 0

stdout:

U+200C: literal true, RegExp true, u ok
U+200D: literal true, RegExp true, u ok
U+200B: literal true, RegExp true, u ok
U+200E: literal true, RegExp true, u ok
U+61: literal true, RegExp true, u SyntaxError

the formal model (ecma-run)

ecma-run 21-identityescape-zwnj-zwj.js: exit status 0

stdout:

normal: undefined
U+200C: literal true, RegExp true, u SyntaxError
U+200D: literal true, RegExp true, u SyntaxError
U+200B: literal true, RegExp true, u SyntaxError
U+200E: literal true, RegExp true, u SyntaxError
U+61: literal SyntaxError, RegExp SyntaxError, u SyntaxError

24-lone-property-gc-assert.js

V8 (node)

node script-shim.cjs 24-lone-property-gc-assert.js: exit status 0

stdout:

/\p{Lu}/u.test('A'): true
/\p{ASCII}/u.test('a'): true
/\p{Hex}/u.test('f'): true
/\p{Any}/u.test('\u{10FFFF}'): true

SpiderMonkey (js140)

js140 24-lone-property-gc-assert.js: exit status 0

stdout:

/\p{Lu}/u.test('A'): true
/\p{ASCII}/u.test('a'): true
/\p{Hex}/u.test('f'): true
/\p{Any}/u.test('\u{10FFFF}'): true

JavaScriptCore (bun)

bun script-shim.cjs 24-lone-property-gc-assert.js: exit status 0

stdout:

/\p{Lu}/u.test('A'): true
/\p{ASCII}/u.test('a'): true
/\p{Hex}/u.test('f'): true
/\p{Any}/u.test('\u{10FFFF}'): true

the formal model (ecma-run)

ecma-run 24-lone-property-gc-assert.js: exit status 0

stdout:

normal: undefined
/\p{Lu}/u.test('A'): true
/\p{ASCII}/u.test('a'): true
/\p{Hex}/u.test('f'): true
/\p{Any}/u.test('\u{10FFFF}'): true

26-annexb-modifiers-early-errors.js

V8 (node)

node script-shim.cjs 26-annexb-modifiers-early-errors.js: exit status 0

stdout:

/(?ii:a)/: SyntaxError; new RegExp: SyntaxError
/(?-:a)/: SyntaxError; new RegExp: SyntaxError
/(?i-i:a)/: SyntaxError; new RegExp: SyntaxError
/(?i:a)/: no error; new RegExp: no error
/(?i-m:a)/: no error; new RegExp: no error

SpiderMonkey (js140)

js140 26-annexb-modifiers-early-errors.js: exit status 0

stdout:

/(?ii:a)/: SyntaxError; new RegExp: SyntaxError
/(?-:a)/: SyntaxError; new RegExp: SyntaxError
/(?i-i:a)/: SyntaxError; new RegExp: SyntaxError
/(?i:a)/: no error; new RegExp: no error
/(?i-m:a)/: no error; new RegExp: no error

JavaScriptCore (bun)

bun script-shim.cjs 26-annexb-modifiers-early-errors.js: exit status 0

stdout:

/(?ii:a)/: SyntaxError; new RegExp: SyntaxError
/(?-:a)/: SyntaxError; new RegExp: SyntaxError
/(?i-i:a)/: SyntaxError; new RegExp: SyntaxError
/(?i:a)/: no error; new RegExp: no error
/(?i-m:a)/: no error; new RegExp: no error

the formal model (ecma-run)

ecma-run 26-annexb-modifiers-early-errors.js: exit status 0

stdout:

normal: undefined
/(?ii:a)/: SyntaxError; new RegExp: SyntaxError
/(?-:a)/: SyntaxError; new RegExp: SyntaxError
/(?i-i:a)/: SyntaxError; new RegExp: SyntaxError
/(?i:a)/: no error; new RegExp: no error
/(?i-m:a)/: no error; new RegExp: no error

29-propname-coverinitializedname.js

V8 (node)

node script-shim.cjs 29-propname-coverinitializedname.js: exit status 0

stdout:

"({a = 1});": SyntaxError
"({__proto__: 1, __proto__ = 2});": SyntaxError
"({a = 1} = {});": no error

SpiderMonkey (js140)

js140 29-propname-coverinitializedname.js: exit status 0

stdout:

"({a = 1});": SyntaxError
"({__proto__: 1, __proto__ = 2});": SyntaxError
"({a = 1} = {});": no error

JavaScriptCore (bun)

bun script-shim.cjs 29-propname-coverinitializedname.js: exit status 0

stdout:

"({a = 1});": SyntaxError
"({__proto__: 1, __proto__ = 2});": SyntaxError
"({a = 1} = {});": no error

the formal model (ecma-run)

ecma-run 29-propname-coverinitializedname.js: exit status 0

stdout:

normal: undefined
"({a = 1});": SyntaxError
"({__proto__: 1, __proto__ = 2});": SyntaxError
"({a = 1} = {});": no error

31-sort-infinite-comparator.js

V8 (node)

node script-shim.cjs 31-sort-infinite-comparator.js: exit status 0

stdout:

1,2,3
1,2,3,4,5
a,b,c

SpiderMonkey (js140)

js140 31-sort-infinite-comparator.js: exit status 0

stdout:

1,2,3
1,2,3,4,5
a,b,c

JavaScriptCore (bun)

bun script-shim.cjs 31-sort-infinite-comparator.js: exit status 0

stdout:

1,2,3
1,2,3,4,5
a,b,c

the formal model (ecma-run)

ecma-run 31-sort-infinite-comparator.js: exit status 0

stdout:

normal: undefined
1,2,3
1,2,3,4,5
a,b,c

32-stringvalue-reservedword.js

V8 (node)

node script-shim.cjs 32-stringvalue-reservedword.js: exit status 0

stdout:

var \u0069f = 1;: SyntaxError
var i\u0066 = 1;: SyntaxError
var \u{63}lass = 1;: SyntaxError
var \u0079ield = 1;: no error
var \u0061wait = 1;: no error
var \u0069g = 1;: no error

SpiderMonkey (js140)

js140 32-stringvalue-reservedword.js: exit status 0

stdout:

var \u0069f = 1;: SyntaxError
var i\u0066 = 1;: SyntaxError
var \u{63}lass = 1;: SyntaxError
var \u0079ield = 1;: no error
var \u0061wait = 1;: no error
var \u0069g = 1;: no error

JavaScriptCore (bun)

bun script-shim.cjs 32-stringvalue-reservedword.js: exit status 0

stdout:

var \u0069f = 1;: SyntaxError
var i\u0066 = 1;: SyntaxError
var \u{63}lass = 1;: SyntaxError
var \u0079ield = 1;: no error
var \u0061wait = 1;: no error
var \u0069g = 1;: no error

the formal model (ecma-run)

ecma-run 32-stringvalue-reservedword.js: exit status 0

stdout:

normal: undefined
var \u0069f = 1;: SyntaxError
var i\u0066 = 1;: SyntaxError
var \u{63}lass = 1;: SyntaxError
var \u0079ield = 1;: no error
var \u0061wait = 1;: no error
var \u0069g = 1;: no error

33-createintrinsics-async-argument-position.js

V8 (node)

node script-shim.cjs 33-createintrinsics-async-argument-position.js: exit status 0

stdout:

get size
get flags
[object Promise]
fromAsync fulfils with [1,2]

SpiderMonkey (js140)

js140 33-createintrinsics-async-argument-position.js: exit status 0

stdout:

get size
get flags
[object Promise]
fromAsync fulfils with [1,2]

JavaScriptCore (bun)

bun script-shim.cjs 33-createintrinsics-async-argument-position.js: exit status 0

stdout:

get size
get flags
[object Promise]
fromAsync fulfils with [1,2]

the formal model (ecma-run)

ecma-run 33-createintrinsics-async-argument-position.js: exit status 0

stdout:

normal: [object #25236]
get size
get flags
[object Promise]
fromAsync fulfils with [1,2]

34-revalidate-atomic-access.js

V8 (node)

node script-shim.cjs 34-revalidate-atomic-access.js: exit status 0

stdout:

Atomics.store: TypeError
Atomics.add: TypeError
Atomics.load: TypeError
Atomics.compareExchange: TypeError

SpiderMonkey (js140)

js140 34-revalidate-atomic-access.js: exit status 0

stdout:

Atomics.store: RangeError
Atomics.add: RangeError
Atomics.load: RangeError
Atomics.compareExchange: RangeError

JavaScriptCore (bun)

bun script-shim.cjs 34-revalidate-atomic-access.js: exit status 0

stdout:

Atomics.store: TypeError
Atomics.add: TypeError
Atomics.load: TypeError
Atomics.compareExchange: TypeError

the formal model (ecma-run)

ecma-run 34-revalidate-atomic-access.js: exit status 0

stdout:

normal: undefined
Atomics.store: RangeError
Atomics.add: RangeError
Atomics.load: RangeError
Atomics.compareExchange: RangeError

35-contains-awaitexpression-cover.js

V8 (node)

node script-shim.cjs 35-contains-awaitexpression-cover.js: exit status 0

stdout:

async function f(x = await 1) {}: SyntaxError
(async function* (x = await 1) {}): SyntaxError
({ async m(x = await 1) {} }): SyntaxError
({ async *m(x = await 1) {} }): SyntaxError
async function g() { async (x = await 1) => 0; }: SyntaxError
AsyncFunction('x = await 1', ''): SyntaxError
async function h() { await 1; }: no error
async function k(x = function () { var await; }) {}: no error
(async function () { class C { static { } } }): no error

SpiderMonkey (js140)

js140 35-contains-awaitexpression-cover.js: exit status 0

stdout:

async function f(x = await 1) {}: SyntaxError
(async function* (x = await 1) {}): SyntaxError
({ async m(x = await 1) {} }): SyntaxError
({ async *m(x = await 1) {} }): SyntaxError
async function g() { async (x = await 1) => 0; }: SyntaxError
AsyncFunction('x = await 1', ''): SyntaxError
async function h() { await 1; }: no error
async function k(x = function () { var await; }) {}: no error
(async function () { class C { static { } } }): no error

JavaScriptCore (bun)

bun script-shim.cjs 35-contains-awaitexpression-cover.js: exit status 0

stdout:

async function f(x = await 1) {}: SyntaxError
(async function* (x = await 1) {}): SyntaxError
({ async m(x = await 1) {} }): SyntaxError
({ async *m(x = await 1) {} }): SyntaxError
async function g() { async (x = await 1) => 0; }: SyntaxError
AsyncFunction('x = await 1', ''): SyntaxError
async function h() { await 1; }: no error
async function k(x = function () { var await; }) {}: SyntaxError
(async function () { class C { static { } } }): no error

the formal model (ecma-run)

ecma-run 35-contains-awaitexpression-cover.js: exit status 0

stdout:

normal: undefined
async function f(x = await 1) {}: SyntaxError
(async function* (x = await 1) {}): SyntaxError
({ async m(x = await 1) {} }): SyntaxError
({ async *m(x = await 1) {} }): SyntaxError
async function g() { async (x = await 1) => 0; }: SyntaxError
AsyncFunction('x = await 1', ''): SyntaxError
async function h() { await 1; }: no error
async function k(x = function () { var await; }) {}: no error
(async function () { class C { static { } } }): no error

36-islabelledfunction-labelleditem.js

V8 (node)

node script-shim.cjs 36-islabelledfunction-labelleditem.js: exit status 0

stdout:

if (1) l: function f() {}: SyntaxError
while (0) l: function f() {}: SyntaxError
if (0) ; else a: b: function g() {}: SyntaxError
while (0) l: m: x;: no error
l: function h() {}: no error

SpiderMonkey (js140)

js140 36-islabelledfunction-labelleditem.js: exit status 0

stdout:

if (1) l: function f() {}: SyntaxError
while (0) l: function f() {}: SyntaxError
if (0) ; else a: b: function g() {}: SyntaxError
while (0) l: m: x;: no error
l: function h() {}: no error

JavaScriptCore (bun)

bun script-shim.cjs 36-islabelledfunction-labelleditem.js: exit status 0

stdout:

if (1) l: function f() {}: SyntaxError
while (0) l: function f() {}: SyntaxError
if (0) ; else a: b: function g() {}: SyntaxError
while (0) l: m: x;: no error
l: function h() {}: no error

the formal model (ecma-run)

ecma-run 36-islabelledfunction-labelleditem.js: exit status 0

stdout:

normal: undefined
if (1) l: function f() {}: SyntaxError
while (0) l: function f() {}: SyntaxError
if (0) ; else a: b: function g() {}: SyntaxError
while (0) l: m: x;: no error
l: function h() {}: SyntaxError

37-split-code-units.js

V8 (node)

node script-shim.cjs 37-split-code-units.js: exit status 0

stdout:

2 string ["a","b"]
true
["\ud83d","\ude00"]

SpiderMonkey (js140)

js140 37-split-code-units.js: exit status 0

stdout:

2 string ["a","b"]
true
["\ud83d","\ude00"]

JavaScriptCore (bun)

bun script-shim.cjs 37-split-code-units.js: exit status 0

stdout:

2 string ["a","b"]
true
["\ud83d","\ude00"]

the formal model (ecma-run)

ecma-run 37-split-code-units.js: exit status 0

stdout:

normal: undefined
2 string ["a","b"]
true
["\ud83d","\ude00"]

38-ordinaryset-receiver-has-property.js

V8 (node)

node script-shim.cjs 38-ordinaryset-receiver-has-property.js: exit status 0

stdout:

true
5

SpiderMonkey (js140)

js140 38-ordinaryset-receiver-has-property.js: exit status 0

stdout:

true
5

JavaScriptCore (bun)

bun script-shim.cjs 38-ordinaryset-receiver-has-property.js: exit status 0

stdout:

true
5

the formal model (ecma-run)

ecma-run 38-ordinaryset-receiver-has-property.js: exit status 0

stdout:

normal: undefined
true
5

39-must-cover-other-rules.js

V8 (node)

node script-shim.cjs 39-must-cover-other-rules.js: exit status 0

stdout:

"([...x = []]) => {};": SyntaxError
"([...x, y]) => {};": SyntaxError
"(a, ...b,) => {};": SyntaxError
"async (...x = []) => {};": SyntaxError
"async\n(foo) => {};": SyntaxError
"(x) => {};": no error

SpiderMonkey (js140)

js140 39-must-cover-other-rules.js: exit status 0

stdout:

"([...x = []]) => {};": SyntaxError
"([...x, y]) => {};": SyntaxError
"(a, ...b,) => {};": SyntaxError
"async (...x = []) => {};": SyntaxError
"async\n(foo) => {};": SyntaxError
"(x) => {};": no error

JavaScriptCore (bun)

bun script-shim.cjs 39-must-cover-other-rules.js: exit status 0

stdout:

"([...x = []]) => {};": SyntaxError
"([...x, y]) => {};": SyntaxError
"(a, ...b,) => {};": SyntaxError
"async (...x = []) => {};": SyntaxError
"async\n(foo) => {};": SyntaxError
"(x) => {};": no error

the formal model (ecma-run)

ecma-run 39-must-cover-other-rules.js: exit status 0

stdout:

normal: undefined
"([...x = []]) => {};": SyntaxError
"([...x, y]) => {};": SyntaxError
"(a, ...b,) => {};": SyntaxError
"async (...x = []) => {};": SyntaxError
"async\n(foo) => {};": SyntaxError
"(x) => {};": no error

40-annexb-regexp-order-group-count.js

V8 (node)

node script-shim.cjs 40-annexb-regexp-order-group-count.js: exit status 0

stdout:

"a{1}" on "a": true
"\\b*" on "": SyntaxError
"a\\b?" on "ab": SyntaxError
"\\x4" on "x4": true
"{,1}" on "{,1}": true
"[\\b]" on "\b": true
"\\c1" on "\\c1": true
"\\1(a)" on "a": true
"\\2(a)(b)" on "ab": true
"\\3(a)(b)" on "\u0003ab": true
"(a)\\10" on "a\b": true
"\\1" on "\u0001": true

SpiderMonkey (js140)

js140 40-annexb-regexp-order-group-count.js: exit status 0

stdout:

"a{1}" on "a": true
"\\b*" on "": SyntaxError
"a\\b?" on "ab": SyntaxError
"\\x4" on "x4": true
"{,1}" on "{,1}": true
"[\\b]" on "\b": true
"\\c1" on "\\c1": true
"\\1(a)" on "a": true
"\\2(a)(b)" on "ab": true
"\\3(a)(b)" on "\u0003ab": true
"(a)\\10" on "a\b": true
"\\1" on "\u0001": true

JavaScriptCore (bun)

bun script-shim.cjs 40-annexb-regexp-order-group-count.js: exit status 0

stdout:

"a{1}" on "a": true
"\\b*" on "": SyntaxError
"a\\b?" on "ab": SyntaxError
"\\x4" on "x4": true
"{,1}" on "{,1}": true
"[\\b]" on "\b": true
"\\c1" on "\\c1": true
"\\1(a)" on "a": true
"\\2(a)(b)" on "ab": true
"\\3(a)(b)" on "\u0003ab": true
"(a)\\10" on "a\b": true
"\\1" on "\u0001": true

the formal model (ecma-run)

ecma-run 40-annexb-regexp-order-group-count.js: exit status 0

stdout:

normal: undefined
"a{1}" on "a": true
"\\b*" on "": SyntaxError
"a\\b?" on "ab": SyntaxError
"\\x4" on "x4": SyntaxError
"{,1}" on "{,1}": SyntaxError
"[\\b]" on "\b": true
"\\c1" on "\\c1": SyntaxError
"\\1(a)" on "a": true
"\\2(a)(b)" on "ab": true
"\\3(a)(b)" on "\u0003ab": SyntaxError
"(a)\\10" on "a\b": SyntaxError
"\\1" on "\u0001": SyntaxError

41-annexb-html-close-comment-token.js

V8 (node)

node script-shim.cjs 41-annexb-html-close-comment-token.js: exit status 0

stdout:

parsed

SpiderMonkey (js140)

js140 41-annexb-html-close-comment-token.js: exit status 0

stdout:

parsed

JavaScriptCore (bun)

bun script-shim.cjs 41-annexb-html-close-comment-token.js: exit status 0

stdout:

parsed

the formal model (ecma-run)

ecma-run 41-annexb-html-close-comment-token.js: exit status 1

stdout:

throw: SyntaxError

43-allocatesharedarraybuffer-byte-length.js

V8 (node)

node script-shim.cjs 43-allocatesharedarraybuffer-byte-length.js: exit status 0

stdout:

true 4 16
8 2

SpiderMonkey (js140)

js140 43-allocatesharedarraybuffer-byte-length.js: exit status 0

stdout:

true 4 16
8 2

JavaScriptCore (bun)

bun script-shim.cjs 43-allocatesharedarraybuffer-byte-length.js: exit status 0

stdout:

true 4 16
8 2

the formal model (ecma-run)

ecma-run 43-allocatesharedarraybuffer-byte-length.js: exit status 0

stdout:

normal: undefined
true 4 16
8 2

44-lookahead-inserted-semicolon.js

V8 (node)

node script-shim.cjs 44-lookahead-inserted-semicolon.js: exit status 0

stdout:

"if (false) let\n[a] = 0;": SyntaxError
"while (false) let\n[a] = 0;": SyntaxError
"if (false) let\n{}": no error
"if (false) let;\n[a] = 0;": no error

SpiderMonkey (js140)

js140 44-lookahead-inserted-semicolon.js: exit status 0

stdout:

"if (false) let\n[a] = 0;": SyntaxError
"while (false) let\n[a] = 0;": SyntaxError
"if (false) let\n{}": no error
"if (false) let;\n[a] = 0;": no error

JavaScriptCore (bun)

bun script-shim.cjs 44-lookahead-inserted-semicolon.js: exit status 0

stdout:

"if (false) let\n[a] = 0;": SyntaxError
"while (false) let\n[a] = 0;": SyntaxError
"if (false) let\n{}": no error
"if (false) let;\n[a] = 0;": no error

the formal model (ecma-run)

ecma-run 44-lookahead-inserted-semicolon.js: exit status 0

stdout:

normal: undefined
"if (false) let\n[a] = 0;": SyntaxError
"while (false) let\n[a] = 0;": SyntaxError
"if (false) let\n{}": no error
"if (false) let;\n[a] = 0;": no error

45-finalizationregistry-unregister.js

V8 (node)

node script-shim.cjs 45-finalizationregistry-unregister.js: exit status 0

stdout:

true
false

SpiderMonkey (js140)

js140 45-finalizationregistry-unregister.js: exit status 0

stdout:

true
false

JavaScriptCore (bun)

bun script-shim.cjs 45-finalizationregistry-unregister.js: exit status 0

stdout:

true
false

the formal model (ecma-run)

ecma-run 45-finalizationregistry-unregister.js: exit status 0

stdout:

normal: undefined
true
false

46-covered-node-tail-call.js

V8 (node)

node script-shim.cjs 46-covered-node-tail-call.js: exit status 0

stdout:

plain: RangeError
paren: RangeError

SpiderMonkey (js140)

js140 46-covered-node-tail-call.js: exit status 0

stdout:

plain: InternalError
paren: InternalError

JavaScriptCore (bun)

bun script-shim.cjs 46-covered-node-tail-call.js: exit status 0

stdout:

plain: done
paren: done

the formal model (ecma-run)

ecma-run 46-covered-node-tail-call.js: exit status TIMEOUT after 120 s

stdout:

(nothing)

47-promise-job-null-realm-code.js

V8 (node)

node script-shim.cjs 47-promise-job-null-realm-code.js: exit status 0

stdout:

resolve(2) called by the null-realm Job
a later Job runs

SpiderMonkey (js140)

js140 47-promise-job-null-realm-code.js: exit status 0

stdout:

resolve(2) called by the null-realm Job
a later Job runs

JavaScriptCore (bun)

bun script-shim.cjs 47-promise-job-null-realm-code.js: exit status 0

stdout:

resolve(2) called by the null-realm Job
a later Job runs

the formal model (ecma-run)

ecma-run 47-promise-job-null-realm-code.js: exit status 0

stdout:

normal: [object #24161]
resolve(2) called by the null-realm Job
a later Job runs

Tests of the model cited by the reports

Report 11

ecma-run tests/run/regexp_lastindex_inside_pair_nonempty.js: exit status 0

stdout:

normal: undefined
1 1 de00 2

Report 13

ecma-run tests/run/null_realm_job.js: exit status 0

stdout:

normal: undefined
false,true