Skip to content

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

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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