js-on-sx: object literal spread {...src}
Some checks failed
Test, Build, and Deploy / test-build-deploy (push) Failing after 31s

This commit is contained in:
2026-05-09 23:42:13 +00:00
parent f15a8d8fef
commit 25b30788b4
4 changed files with 70 additions and 8 deletions

View File

@@ -620,6 +620,10 @@
(append!
kvs
{:value (jp-parse-assignment st) :computed-key key-expr :key ""}))))
((and (= (get t :type) "punct") (= (get t :value) "..."))
(do
(jp-advance! st)
(append! kvs {:spread (jp-parse-assignment st)})))
(else (error (str "Unexpected in object: " (get t :type))))))))
(define