Skip to content

Commit

Permalink
Propagate missing memory argument (#2011)
Browse files Browse the repository at this point in the history
Fixes #2010.
  • Loading branch information
RReverser committed Feb 20, 2020
1 parent ec1b945 commit d26068d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/cli-support/src/js/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ impl<'a> Context<'a> {

let js = format!(
"\
async function load(module, imports) {{
async function load(module, imports{init_memory_arg}) {{
if (typeof Response === 'function' && module instanceof Response) {{
{init_memory2}
if (typeof WebAssembly.instantiateStreaming === 'function') {{
Expand Down Expand Up @@ -556,7 +556,7 @@ impl<'a> Context<'a> {
input = fetch(input);
}}
const {{ instance, module }} = await load(await input, imports);
const {{ instance, module }} = await load(await input, imports{init_memory_arg});
wasm = instance.exports;
init.__wbindgen_wasm_module = module;
Expand Down

0 comments on commit d26068d

Please sign in to comment.