js-on-sx: Function constructor compiles + evaluates JS source
Some checks failed
Test, Build, and Deploy / test-build-deploy (push) Failing after 30s

Was unconditionally throwing "Function constructor not supported".
Now js-function-ctor joins param strings with commas, wraps the
body in (function(<params>){<body>}), and runs it through js-eval.
Now Function('a', 'b', 'return a + b')(3,4) === 7.
built-ins/Function: 0/14 → 4/14. conformance.sh: 148/148.
This commit is contained in:
2026-05-08 16:02:14 +00:00
parent f0dffd275d
commit ee422f3d15
4 changed files with 91 additions and 48 deletions

View File

@@ -1,28 +1,26 @@
# test262 scoreboard
Pinned commit: `d5e73fc8d2c663554fb72e2380a8c2bc1a318a33`
Wall time: 141.9s
Wall time: 11.2s
**Total:** 23/45 runnable passed (51.1%). Raw: pass=23 fail=21 skip=5 timeout=1 total=50.
**Total:** 4/14 runnable passed (28.6%). Raw: pass=4 fail=10 skip=16 timeout=0 total=30.
## Top failure modes
- **18x** Test262Error (assertion failed)
- **2x** TypeError: not a function
- **1x** Timeout
- **1x** Unhandled: Not callable: {:2 43 :1 42 :0 41 :length 3}\
- **4x** SyntaxError (parse/unsupported syntax)
- **3x** ReferenceError (undefined symbol)
- **3x** TypeError (other)
## Categories (worst pass-rate first, min 10 runnable)
| Category | Pass | Fail | Skip | Timeout | Total | Pass % |
|---|---:|---:|---:|---:|---:|---:|
| built-ins/Array | 23 | 21 | 5 | 1 | 50 | 51.1% |
| built-ins/Function | 4 | 10 | 16 | 0 | 30 | 28.6% |
## Per-category top failures (min 10 runnable, worst first)
### built-ins/Array (23/45 — 51.1%)
### built-ins/Function (4/14 — 28.6%)
- **18x** Test262Error (assertion failed)
- **2x** TypeError: not a function
- **1x** Timeout
- **1x** Unhandled: Not callable: {:2 43 :1 42 :0 41 :length 3}\
- **4x** SyntaxError (parse/unsupported syntax)
- **3x** ReferenceError (undefined symbol)
- **3x** TypeError (other)