summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/wasm2js.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/wasm2js.h b/src/wasm2js.h
index 321734688..7fa923ceb 100644
--- a/src/wasm2js.h
+++ b/src/wasm2js.h
@@ -217,6 +217,7 @@ public:
std::to_string(index))
.c_str(),
false);
+ ret = fromName(ret, NameScope::Local);
}
if (func->localIndices.find(ret) == func->localIndices.end()) {
Builder::addVar(func, ret, type);