Fix last 3 VM tests: HOF primitives dispatch through vm-call-closure
Handle for-each/map/reduce in VM's CALL_PRIM handler instead of JS primitives. VM closures are called via vm-call-closure (fresh VM, shared upvalue cells). Native callables dispatch directly. Named let doesn't work inside vm-step context — use explicit define + recursion for reduce loop. JS tests: 1585/1585 (0 failures) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in: