Skip to content

Bug Report: workerd crashes in --jitless mode / when wasm is unavailable #5505

@raykyri

Description

@raykyri

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions