Registering map/for-each/reduce as PRIMITIVES caused the compiler to emit CALL_PRIM for them everywhere. The OCaml VM's call-primitive can't invoke VM closures, causing "Undefined symbol: resource" crashes. Revert vm.sx to original CALL_PRIM handler. Remove map/for-each/reduce from JS PRIMITIVES so compiler emits OP_CALL instead (handled by vm-call which dispatches correctly). 3 JS VM tests remain failing (VM closure interop) but production is stable. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
135 KiB
135 KiB