Problem
If Bun exists at one of three hard-coded paths (one of them /Users/chrisbreuer/...), home run hands the file to Bun unless HOME_NATIVE_VM is set. scripts/runtime-regression.sh doesn't set it, and tests/runtime/workers.test.mjs — which covers Worker, MessageChannel and BroadcastChannel — has no process.execPath check (28 of 80 runtime tests lack one). Worker/threads results may be measuring Bun.
Evidence (origin/main @ d4b219507)
src/main.zig:1561-1571src/main.zig:1615-1660scripts/runtime-regression.sh:68tests/runtime/workers.test.mjs
Scope
- Set
HOME_NATIVE_VM=1in the regression script (or assert which engine ran). - Add an
execPath/ engine assertion to every runtime test. - Remove the hard-coded developer path from
findBunBinary.
Acceptance criteria
- The suite passes with a fake
bunthat exits 1 placed on PATH and at each candidate path.
Links
Part of #814.