js-on-sx: wrapper constructor-detection, Array.prototype.toString, >>> operator
Some checks failed
Test, Build, and Deploy / test-build-deploy (push) Failing after 11s

Number.__callable__ and String.__callable__ now check this.__proto__ ===
Number/String.prototype before writing wrapper slots, preventing false-positive
mutation when called as plain function. js-to-number extended to unwrap
wrapper dicts and call valueOf/toString for plain objects. Array.prototype.toString
replaced with a direct js-list-join implementation (eliminates infinite recursion
via js-invoke-method on dict-based arrays). >>> added to transpiler + runtime.

String test262 subset: 62→66/100. 529/530 unit, 147/148 slice.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-25 19:22:53 +00:00
parent ea63b6d9bb
commit 97180b4aa3
5 changed files with 232 additions and 54 deletions

View File

@@ -295,6 +295,11 @@
(list (js-sym "js-undefined?") (js-sym "_a")))
(js-transpile r)
(js-sym "_a"))))
((= op ">>>")
(list
(js-sym "js-unsigned-rshift")
(js-transpile l)
(js-transpile r)))
(else (error (str "js-transpile-binop: unsupported op: " op))))))
;; ── Object literal ────────────────────────────────────────────────