Files
rose-ash/shared/sx/tests/test_bootstrapper.py
giles 3749fe9625
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 4m51s
Fix bootstrapper dict literal transpilation: emit values through emit()
The SX parser produces native Python dicts for {:key val} syntax, but
both JSEmitter and PyEmitter had no dict case in emit() — falling through
to str(expr) which output raw AST. This broke client-side routing because
process-page-scripts used {"parsed" (parse-route-pattern ...)} and the
function call was emitted as a JS array of Symbols instead of an actual
function call.

Add _emit_native_dict() to both bootstrappers + 8 unit tests.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-06 16:24:44 +00:00

2.1 KiB