SIGN IN SIGN UP

Smoke handler: also fall back to sibling-of-execPath lookup

Round 10 still failed Windows because the smoke handler in main()
doesn't go through init-node's locateFile callback at all — it
calls Parser.init directly, so my init-node sibling fallback
(rounds 9-10) never runs during the smoke step.

Diagnostic confirmed: at main() time, process.execPath is the disk
path on Windows AND the sibling tree-sitter.wasm exists right next
to it. Pre-init couldn't reach the file (execPath was bunfs at that
phase), so wasmBinary and wasmPath were both empty when smoke ran.

Add the sibling lookup directly to the smoke handler, gated on
those being empty. By main() time the disk path is reliable, so
fs.existsSync(dirname(execPath) + 'tree-sitter.wasm') resolves
correctly and we have something to feed Parser.init.

Real users (no --smoke-tree-sitter flag) still go through the
init-node sibling fallback in the SDK's eager Parser.init — that's
unaffected by this change.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
J
James Grugett committed
c77e79f3649c6d5d442e3b56b171ef5a09bba187
Parent: 633cddd