Skip to content

Commit

Permalink
WebAssembly.Instance needs to be called as a constructor (#364)
Browse files Browse the repository at this point in the history
  • Loading branch information
zoren authored Jan 31, 2024
1 parent 330edc4 commit c6e16b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/js-component-bindgen/src/transpile_bindgen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ impl<'a> JsBindgen<'a> {
output,
"\
{}
export function instantiate(getCoreModule, imports, instantiateCore = WebAssembly.Instance) {{
export function instantiate(getCoreModule, imports, instantiateCore = (module, importObject) => new WebAssembly.Instance(module, importObject)) {{
{}
",
&js_intrinsics as &str,
Expand Down

0 comments on commit c6e16b0

Please sign in to comment.