js-on-sx: Object.assign uses js-set-prop so keys appear in __js_order__
Some checks failed
Test, Build, and Deploy / test-build-deploy (push) Failing after 25s

This commit is contained in:
2026-05-10 15:37:15 +00:00
parent 9d364a0c20
commit a8596bd090
2 changed files with 4 additions and 2 deletions

View File

@@ -4518,7 +4518,7 @@
(for-each
(fn
(k)
(if (js-key-internal? k) nil (dict-set! target k (get src k))))
(if (js-key-internal? k) nil (js-set-prop target k (get src k))))
(js-object-keys src)))
((= (type-of src) "string")
(let
@@ -4535,7 +4535,7 @@
((>= i n) nil)
(else
(begin
(dict-set! target (js-to-string i) (char-at s i))
(js-set-prop target (js-to-string i) (char-at s i))
(js-object-assign-string-loop target s (+ i 1) n))))))
(define js-object-freeze (fn (o) o))