Three bugs fixed: 1. host-get in sx-platform.js: return true for function-valued properties so dom-get-attr/dom-set-attr guards pass (functions can't cross WASM boundary) 2. hs-runtime.sx: renamed host-get→hs-host-get and dom-query→hs-dom-query to stop shadowing platform natives when loaded as .sx source 3. compile-modules.js: HS dependency chain (integration→runtime→compiler→parser→tokenizer) so lazy loading pulls in all deps. Non-library modules load as .sx source for CEK env visibility. Result: 8/8 elements activate, hs-on attaches listeners. Click handler needs IO suspension support (VmSuspended in sx_browser.ml) to fire — next step. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
15 KiB
15 KiB