js-on-sx: js-to-string emits comma-joined elements for SX lists
Some checks failed
Test, Build, and Deploy / test-build-deploy (push) Failing after 1m3s

String([1,2,3]) was returning "(1 2 3)" (the SX (str v) fallback in
js-to-string fell through for SX lists). Replaced the fallback with
a list-typed branch that delegates to (js-list-join v ","). Fixes
String(arr), "" + arr, and any implicit array-to-string coercion.
built-ins/String: 65/99 → 67/99. conformance.sh: 148/148.
This commit is contained in:
2026-05-07 12:45:06 +00:00
parent 081f934cad
commit 66f13c95d5
4 changed files with 29 additions and 32 deletions

View File

@@ -1231,7 +1231,7 @@
"[object Object]"))
(js-to-string result)))
"[object Object]"))))
(str v))))))
(if (= (type-of v) "list") (js-list-join v ",") (str v)))))))
(define
js-template-concat