js-on-sx: native prototypes carry wrapped primitive marker
Some checks failed
Test, Build, and Deploy / test-build-deploy (push) Failing after 32s

Per ES, Boolean.prototype is a Boolean wrapper around false,
Number.prototype wraps 0, String.prototype wraps "". So
Boolean.prototype == false (loose-eq unwraps), and
Object.prototype.toString.call(Number.prototype) ===
"[object Number]". Set __js_*_value__ on each in post-init.
built-ins/Boolean: 23/27 → 24/27, String: 80/99 → 84/99.
conformance.sh: 148/148.
This commit is contained in:
2026-05-08 11:27:18 +00:00
parent f03aa3056d
commit e97bdc4602
4 changed files with 57 additions and 32 deletions

View File

@@ -4651,6 +4651,9 @@
(dict-set! (get Number "prototype") "__proto__" (get Object "prototype"))
(dict-set! (get String "prototype") "__proto__" (get Object "prototype"))
(dict-set! (get Boolean "prototype") "__proto__" (get Object "prototype"))
(dict-set! (get js-function-global "prototype") "__proto__" (get Object "prototype")))
(dict-set! (get js-function-global "prototype") "__proto__" (get Object "prototype"))
(dict-set! (get Number "prototype") "__js_number_value__" 0)
(dict-set! (get String "prototype") "__js_string_value__" "")
(dict-set! (get Boolean "prototype") "__js_boolean_value__" false))
(define js-global {:undefined js-undefined :JSON JSON :parseInt parseInt :Object Object :isNaN js-global-is-nan :Infinity inf :NaN 0 :String String :Boolean Boolean :Array Array :Math Math :parseFloat parseFloat :Number Number :console console :isFinite js-global-is-finite})

View File

@@ -1,45 +1,61 @@
{
"totals": {
"pass": 46,
"fail": 2,
"skip": 0,
"timeout": 2,
"total": 50,
"runnable": 50,
"pass_rate": 92.0
"pass": 84,
"fail": 12,
"skip": 1,
"timeout": 3,
"total": 100,
"runnable": 99,
"pass_rate": 84.8
},
"categories": [
{
"category": "built-ins/Number",
"total": 50,
"pass": 46,
"fail": 2,
"skip": 0,
"timeout": 2,
"pass_rate": 92.0,
"category": "built-ins/String",
"total": 100,
"pass": 84,
"fail": 12,
"skip": 1,
"timeout": 3,
"pass_rate": 84.8,
"top_failures": [
[
"Timeout",
2
"Test262Error (assertion failed)",
10
],
[
"Test262Error (assertion failed)",
2
"Timeout",
3
],
[
"ReferenceError (undefined symbol)",
1
],
[
"SyntaxError (parse/unsupported syntax)",
1
]
]
}
],
"top_failure_modes": [
[
"Timeout",
2
"Test262Error (assertion failed)",
10
],
[
"Test262Error (assertion failed)",
2
"Timeout",
3
],
[
"ReferenceError (undefined symbol)",
1
],
[
"SyntaxError (parse/unsupported syntax)",
1
]
],
"pinned_commit": "d5e73fc8d2c663554fb72e2380a8c2bc1a318a33",
"elapsed_seconds": 90.4,
"elapsed_seconds": 192.4,
"workers": 1
}

View File

@@ -1,24 +1,28 @@
# test262 scoreboard
Pinned commit: `d5e73fc8d2c663554fb72e2380a8c2bc1a318a33`
Wall time: 90.4s
Wall time: 192.4s
**Total:** 46/50 runnable passed (92.0%). Raw: pass=46 fail=2 skip=0 timeout=2 total=50.
**Total:** 84/99 runnable passed (84.8%). Raw: pass=84 fail=12 skip=1 timeout=3 total=100.
## Top failure modes
- **2x** Timeout
- **2x** Test262Error (assertion failed)
- **10x** Test262Error (assertion failed)
- **3x** 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/Number | 46 | 2 | 0 | 2 | 50 | 92.0% |
| built-ins/String | 84 | 12 | 1 | 3 | 100 | 84.8% |
## Per-category top failures (min 10 runnable, worst first)
### built-ins/Number (46/50 — 92.0%)
### built-ins/String (84/99 — 84.8%)
- **2x** Timeout
- **2x** Test262Error (assertion failed)
- **10x** Test262Error (assertion failed)
- **3x** Timeout
- **1x** ReferenceError (undefined symbol)
- **1x** SyntaxError (parse/unsupported syntax)