Seed all primitives into vm_globals as NativeFn values at init. CALL_PRIM now looks up vm.globals only (not the separate primitives table). This means OP_DEFINE and registerNative naturally override primitives — browser.sx's (define set-cookie ...) now takes effect. The primitives Hashtbl remains for the compiler's primitive? predicate but has no runtime dispatch role. Tests: 2435 pass / 64 fail (pre-existing), vs 1718/771 baseline. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
41 KiB
41 KiB