Skip to content

Emterpreter data not embedded in WASM #5330

@curiousdannii

Description

@curiousdannii

If you're compiling to WASM with the Emterpreter, the Emterpreter data is not embedded within the WASM and is either left as a standalone file, or embedded as an array in the JS.

The WASM spec allows you to have multiple data sections, and the Emterpreter data is just being set in the main heap, so it should be possible to have it embedded in the WASM, right?

Also, the helpful error for when you forget to load the data file Assertion failed: bad emterpreter file in -O0 turns into the much less clear failed to asynchronously prepare wasm: RuntimeError: remainder by zero in -O3.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions