js-on-sx: scope var defines + js-args for call args
Some checks failed
Test, Build, and Deploy / test-build-deploy (push) Failing after 50s

JS top-level var was emitting (define <name> X) at SX top level,
permanently rebinding any SX primitive of that name (e.g. var list
= X broke (list ...) globally). Two-part fix:
1. wrap transpiled program in (let () ...) in js-eval so defines
   scope to the eval and don't leak.
2. rename call-args constructor in js-transpile-args from list to
   js-args (a variadic alias) so even within the eval's own scope,
   JS vars named list don't shadow arg construction.
Array-literal transpile keeps list (arrays must be mutable).
built-ins/Object: 41/50 → 42/50. conformance.sh: 148/148.
This commit is contained in:
2026-05-07 23:55:07 +00:00
parent 06a5b5b07c
commit 82100603f0
5 changed files with 51 additions and 47 deletions

View File

@@ -1,28 +1,28 @@
# test262 scoreboard
Pinned commit: `d5e73fc8d2c663554fb72e2380a8c2bc1a318a33`
Wall time: 37.1s
Wall time: 486.8s
**Total:** 41/50 runnable passed (82.0%). Raw: pass=41 fail=9 skip=0 timeout=0 total=50.
**Total:** 77/99 runnable passed (77.8%). Raw: pass=77 fail=15 skip=1 timeout=7 total=100.
## Top failure modes
- **4x** ReferenceError (undefined symbol)
- **2x** SyntaxError (parse/unsupported syntax)
- **2x** Test262Error (assertion failed)
- **1x** runner-error: sx_server closed stdout mid-epoch
- **13x** Test262Error (assertion failed)
- **7x** Timeout
- **1x** ReferenceError (undefined symbol)
- **1x** SyntaxError (parse/unsupported syntax)
## Categories (worst pass-rate first, min 10 runnable)
| Category | Pass | Fail | Skip | Timeout | Total | Pass % |
|---|---:|---:|---:|---:|---:|---:|
| built-ins/Object | 41 | 9 | 0 | 0 | 50 | 82.0% |
| built-ins/String | 77 | 15 | 1 | 7 | 100 | 77.8% |
## Per-category top failures (min 10 runnable, worst first)
### built-ins/Object (41/50 — 82.0%)
### built-ins/String (77/99 — 77.8%)
- **4x** ReferenceError (undefined symbol)
- **2x** SyntaxError (parse/unsupported syntax)
- **2x** Test262Error (assertion failed)
- **1x** runner-error: sx_server closed stdout mid-epoch
- **13x** Test262Error (assertion failed)
- **7x** Timeout
- **1x** ReferenceError (undefined symbol)
- **1x** SyntaxError (parse/unsupported syntax)