Skip to content

Commit d26068d

Browse files
authored
Propagate missing memory argument (#2011)
Fixes #2010.
1 parent ec1b945 commit d26068d

File tree

1 file changed

+2
-2
lines changed
  • crates/cli-support/src/js

1 file changed

+2
-2
lines changed

crates/cli-support/src/js/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ impl<'a> Context<'a> {
510510

511511
let js = format!(
512512
"\
513-
async function load(module, imports) {{
513+
async function load(module, imports{init_memory_arg}) {{
514514
if (typeof Response === 'function' && module instanceof Response) {{
515515
{init_memory2}
516516
if (typeof WebAssembly.instantiateStreaming === 'function') {{
@@ -556,7 +556,7 @@ impl<'a> Context<'a> {
556556
input = fetch(input);
557557
}}
558558
559-
const {{ instance, module }} = await load(await input, imports);
559+
const {{ instance, module }} = await load(await input, imports{init_memory_arg});
560560
561561
wasm = instance.exports;
562562
init.__wbindgen_wasm_module = module;

0 commit comments

Comments
 (0)