Files
rose-ash/lib/hyperscript/compiler.sx
giles 42184797f1
Some checks failed
Test, Build, and Deploy / test-build-deploy (push) Failing after 40s
HS: fix repeat-in loop variable binding + dict insertion order (+4 tests)
Two fixes:

(1) compiler.sx: remove `it` from hs-reserved-var?. `it` is the standard
HS loop variable for `repeat in` loops; renaming it to `_hs_lv_it` made
the body reference the outer (nil) `it` rather than the bound element.
Other reserved vars (meta, event, result) still get renamed to prevent
shadowing built-ins in misnamed loops.

(2) runtime.sx: hs-make-object now appends an `_order` list tracking
insertion order, mirroring the pattern used by other dict-building paths.
Without this, `for prop in obj` fell back to `(keys obj)` which gives
non-deterministic key order for objects with string keys.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-04 18:33:12 +00:00

107 KiB