summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/wasm/wasm-emscripten.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/wasm/wasm-emscripten.cpp b/src/wasm/wasm-emscripten.cpp
index bcf9539a6..5b08b4641 100644
--- a/src/wasm/wasm-emscripten.cpp
+++ b/src/wasm/wasm-emscripten.cpp
@@ -33,11 +33,8 @@
namespace wasm {
-cashew::IString EM_ASM_PREFIX("emscripten_asm_const");
cashew::IString EM_JS_PREFIX("__em_js__");
-static Name STACK_INIT("stack$init");
-
void addExportedFunction(Module& wasm, Function* function) {
wasm.addFunction(function);
auto export_ = new Export;
@@ -429,9 +426,7 @@ std::string EmscriptenGlueGenerator::generateEmscriptenMetadata() {
meta << " \"externs\": [";
commaFirst = true;
ModuleUtils::iterImportedGlobals(wasm, [&](Global* import) {
- if (!(import->module == ENV && import->name == STACK_INIT)) {
- meta << nextElement() << "\"_" << import->base.str << '"';
- }
+ meta << nextElement() << "\"_" << import->base.str << '"';
});
meta << "\n ],\n";