workerd crashes whenever the --jitless flag is passed in v8Flags.
V8 doesn't support WASM in interpreter mode so globalThis.WebAssembly is not exposed, but workerd assumes it’s present and unconditionally reads WebAssembly.Module during context setup, which throws and aborts.
> [email protected] start:jitless
> workerd serve ./config.jitless.capnp --socket-addr http=0.0.0.0:${PORT:-8787} --verbose
Uncaught TypeError: Cannot read properties of undefined (reading 'Module')
FROM
zsh: trace trap npm run start:jitless
Is this outside the scope of supported ways to run worked? I looked for a flag to disable WebAssembly module use or polyfill away the WebAssembly global, but couldn't find one.
Repro: https://github.com/raykyri/workerd-jitless-repro