HS: set *prop of target — handle style in 'of' put-target
Some checks failed
Test, Build, and Deploy / test-build-deploy (push) Failing after 19s

Add style case to the of-target compiler branch so
'set *color of #el to x' emits dom-set-style correctly.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-27 02:52:57 +00:00
parent eef2bfdd89
commit eeb4e48230
2 changed files with 20 additions and 2 deletions

View File

@@ -150,7 +150,16 @@
(hs-to-sx obj-ast)
(nth prop-ast 1)
value)
(list (quote set!) (hs-to-sx target) value))))))
(if
(and
(list? prop-ast)
(= (first prop-ast) (quote style)))
(list
(quote dom-set-style)
(hs-to-sx obj-ast)
(nth prop-ast 1)
value)
(list (quote set!) (hs-to-sx target) value)))))))
(true (list (quote set!) (hs-to-sx target) value)))))))
(define
emit-on