When the VM called a JIT-compiled lambda, it passed vm.globals (the caller's global env) instead of cl.vm_env_ref (the closure's captured env that was merged at compile time). Closure-captured variables like code-tokens from island let/letrec scopes were invisible at runtime, causing "Undefined symbol" errors that cascaded to disable render-to-html globally. Fix: call_closure uses cl.vm_env_ref at both call sites (cached bytecode and fresh compilation). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
26 KiB
26 KiB