Skip to content

ie-js: expose WebAssembly global to JavaScript via Boa #91

@thomasnemer

Description

@thomasnemer

Goal

The wasmtime runtime (ie-wasm) works but isn't exposed as the WebAssembly JS global.

Current state

  • WasmRuntime can instantiate .wasm modules from Rust
  • No WebAssembly.instantiate() in JS
  • No WebAssembly.Module/Instance/Memory JS classes

Implementation needed

  • Register WebAssembly global object on JsRuntime
  • WebAssembly.instantiate(bufferSource, importObject)
  • WebAssembly.compile(bufferSource)
  • Bridge between boa JsValue and wasmtime Val types

Impact

WebAssembly-heavy sites won't work. Low priority — most sites don't require wasm.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions