summaryrefslogtreecommitdiff
path: root/src/wasm2js.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm2js.h')
-rw-r--r--src/wasm2js.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/wasm2js.h b/src/wasm2js.h
index b1548c0ca..e032ac26d 100644
--- a/src/wasm2js.h
+++ b/src/wasm2js.h
@@ -2087,7 +2087,8 @@ void Wasm2JSGlue::emitPreES6() {
}
baseModuleMap[base] = module;
- out << "import { " << base.str << " } from '" << module.str << "';\n";
+ out << "import { " << asmangle(base.str) << " } from '" << module.str
+ << "';\n";
};
ImportInfo imports(wasm);
@@ -2185,7 +2186,7 @@ void Wasm2JSGlue::emitPostES6() {
if (ABI::wasm2js::isScratchMemoryHelper(import->base)) {
return;
}
- out << "," << import->base.str;
+ out << "," << asmangle(import->base.str);
});
out << "},mem" << moduleName.str << ");\n";