Some checks failed
Test, Build, and Deploy / test-build-deploy (push) Failing after 46s
Every .sxbc shipped with `:bytecode (nil nil ...)` and `:arity nil`, so the WASM
kernel's vm.sx hit "VM: unknown opcode 0" on every module and fell back to .sx
source (slower, noisy console). Root cause: `raw_serialize` in the `compile-blob`
command (sx_server.ml) handles `Number` but not `Integer`, and bytecode opcodes +
arity/upvalue-count are `Integer`s — so they fell through to the `_ -> "nil"`
catch-all and serialized as nil. Same class of bug as the value_to_js Integer gap
(689dae7d). It went unnoticed because source-fallback masks it. Add the Integer
case and regenerate: the web stack now loads entirely from bytecode (0 unknown-
opcode warnings, 0 source fallbacks), boost + SPA unchanged. compiler.sx in the
bundle was also stale — re-synced to the canonical lib/compiler.sx.
Verified: native host conformance 271/271; chromium boots with 0 unknown-opcode
warnings + 0 source-fallback loads; spa-check still passes (boost 6/6, fragment
swap). Prereq for content-addressing the assets (caching real bytecode, not nil).
4 lines
318 B
Plaintext
4 lines
318 B
Plaintext
(sxbc 1 "857de8641ad2e912"
|
|
(code
|
|
:constants ("hs-worker-loaded?" "hs-register-feature!" "worker" {:upvalue-count 0 :arity 1 :constants ("worker plugin is not installed — see https://hyperscript.org/features/worker" "error") :bytecode (1 0 0 52 1 0 1 50)}) :bytecode (3 128 0 0 5 20 1 0 1 2 0 51 3 0 48 2 50)))
|