Fix variable name reference for path_or_module

This commit is contained in:
Ingvar Stepanyan 2018-11-22 18:26:37 +00:00 committed by GitHub
parent 4e4a273f19
commit 26f1903bee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);