Skip to content

webassemblyjs's instantiate() does not accept a WebAssembly.Module #1205

@jparismorgan

Description

@jparismorgan

I noticed that webassemblyjs's instantiate() does not accept a WebAssembly.Module in bufferSource: https://github.com/xtuc/webassemblyjs/blob/master/packages/webassemblyjs/src/index.js#L30

But in the MDN docs, buffersource is allowed to be a WebAssembly.Module:

A typed array or ArrayBuffer containing the binary code of the Wasm module you want to compile, or a WebAssembly.Module.

Would be nice to support this, if possible. Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions