summaryrefslogtreecommitdiff
path: root/src/wasm
diff options
context:
space:
mode:
authorSam Clegg <sbc@chromium.org>2018-08-29 13:34:04 -0700
committerGitHub <noreply@github.com>2018-08-29 13:34:04 -0700
commit9723f53ec46ad83e3ff8c89b60eb64a71a8eb74c (patch)
treeb8512af73202e25297db0024000342e3ecd600db /src/wasm
parentf35b208a360882570bf97bfa7ff8d1293017dc95 (diff)
downloadbinaryen-9723f53ec46ad83e3ff8c89b60eb64a71a8eb74c.tar.gz
binaryen-9723f53ec46ad83e3ff8c89b60eb64a71a8eb74c.tar.bz2
binaryen-9723f53ec46ad83e3ff8c89b60eb64a71a8eb74c.zip
Run legalize-js-interface during wasm-emscripten-finalize (#1653)
This ensures that 64-bit values are correctly handled on the JS boundary.
Diffstat (limited to 'src/wasm')
-rw-r--r--src/wasm/wasm-emscripten.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wasm/wasm-emscripten.cpp b/src/wasm/wasm-emscripten.cpp
index 580510ecb..7b0df6827 100644
--- a/src/wasm/wasm-emscripten.cpp
+++ b/src/wasm/wasm-emscripten.cpp
@@ -605,7 +605,7 @@ struct FixInvokeFunctionNamesWalker : public PostWalker<FixInvokeFunctionNamesWa
assert(importRenames.count(curr->name) == 0);
importRenames[curr->name] = newname;
- // Either rename of remove the existing import
+ // Either rename or remove the existing import
if (wasm.getImportOrNull(newname) || !newImports.insert(newname).second) {
toRemove.push_back(curr->name);
} else {