js-on-sx: js-to-number throws TypeError on non-primitive
Some checks failed
Test, Build, and Deploy / test-build-deploy (push) Failing after 49s
Some checks failed
Test, Build, and Deploy / test-build-deploy (push) Failing after 49s
Mirrors the earlier js-to-string fix. Number(obj) must throw if ToPrimitive cannot extract a primitive (both valueOf and toString return objects). Was returning NaN silently. Replaced the inner (js-nan-value) fallback with (raise (js-new-call TypeError ...)). built-ins/Number: 45/50 → 46/50. conformance.sh: 148/148.
This commit is contained in:
@@ -1,24 +1,24 @@
|
||||
# test262 scoreboard
|
||||
|
||||
Pinned commit: `d5e73fc8d2c663554fb72e2380a8c2bc1a318a33`
|
||||
Wall time: 38.2s
|
||||
Wall time: 90.4s
|
||||
|
||||
**Total:** 44/50 runnable passed (88.0%). Raw: pass=44 fail=6 skip=0 timeout=0 total=50.
|
||||
**Total:** 46/50 runnable passed (92.0%). Raw: pass=46 fail=2 skip=0 timeout=2 total=50.
|
||||
|
||||
## Top failure modes
|
||||
|
||||
- **4x** ReferenceError (undefined symbol)
|
||||
- **2x** SyntaxError (parse/unsupported syntax)
|
||||
- **2x** Timeout
|
||||
- **2x** Test262Error (assertion failed)
|
||||
|
||||
## Categories (worst pass-rate first, min 10 runnable)
|
||||
|
||||
| Category | Pass | Fail | Skip | Timeout | Total | Pass % |
|
||||
|---|---:|---:|---:|---:|---:|---:|
|
||||
| built-ins/Object | 44 | 6 | 0 | 0 | 50 | 88.0% |
|
||||
| built-ins/Number | 46 | 2 | 0 | 2 | 50 | 92.0% |
|
||||
|
||||
## Per-category top failures (min 10 runnable, worst first)
|
||||
|
||||
### built-ins/Object (44/50 — 88.0%)
|
||||
### built-ins/Number (46/50 — 92.0%)
|
||||
|
||||
- **4x** ReferenceError (undefined symbol)
|
||||
- **2x** SyntaxError (parse/unsupported syntax)
|
||||
- **2x** Timeout
|
||||
- **2x** Test262Error (assertion failed)
|
||||
|
||||
Reference in New Issue
Block a user