mirror of
https://github.com/rustwasm/wasm-bindgen.git
synced 2024-11-27 19:28:56 +03:00
Merge pull request #1047 from RReverser/patch-1
Fix variable name reference for path_or_module
This commit is contained in:
commit
fc0d6528fc
@ -560,7 +560,7 @@ impl<'a> Context<'a> {
|
||||
if (path_or_module instanceof WebAssembly.Module) {{
|
||||
instantiation = WebAssembly.instantiate(path_or_module, imports)
|
||||
.then(instance => {{
|
||||
return {{ instance, module: module_or_path }}
|
||||
return {{ instance, module: path_or_module }}
|
||||
}});
|
||||
}} else {{
|
||||
const data = fetch(path_or_module);
|
||||
|
Loading…
Reference in New Issue
Block a user