mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-14 05:21:24 +00:00
Fix variable name reference for path_or_module
This commit is contained in:
@ -560,7 +560,7 @@ impl<'a> Context<'a> {
|
|||||||
if (path_or_module instanceof WebAssembly.Module) {{
|
if (path_or_module instanceof WebAssembly.Module) {{
|
||||||
instantiation = WebAssembly.instantiate(path_or_module, imports)
|
instantiation = WebAssembly.instantiate(path_or_module, imports)
|
||||||
.then(instance => {{
|
.then(instance => {{
|
||||||
return {{ instance, module: module_or_path }}
|
return {{ instance, module: path_or_module }}
|
||||||
}});
|
}});
|
||||||
}} else {{
|
}} else {{
|
||||||
const data = fetch(path_or_module);
|
const data = fetch(path_or_module);
|
||||||
|
Reference in New Issue
Block a user