summaryrefslogtreecommitdiff
path: root/scripts/test
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2019-04-19 15:22:55 -0700
committerGitHub <noreply@github.com>2019-04-19 15:22:55 -0700
commitdb14d0477f2715e3071687f42b77d8712477d83e (patch)
tree7cb4f679bfc18cbb7d4a87db0b3d5a02f6bcaeed /scripts/test
parenta4baf2152d11c28964025759d2702fe7c48d321e (diff)
downloadbinaryen-db14d0477f2715e3071687f42b77d8712477d83e.tar.gz
binaryen-db14d0477f2715e3071687f42b77d8712477d83e.tar.bz2
binaryen-db14d0477f2715e3071687f42b77d8712477d83e.zip
wasm2js2 import fixes (#2031)
* Don't assume function types exist in legalize-js-interface. * Properly handle (ignore) imports in RemoveNonJSOps - do not try to recurse into them. * Run legalize-js-interface and remove-unused-module-elements in wasm2js, the first is necessary, the last is nice to have.
Diffstat (limited to 'scripts/test')
-rw-r--r--scripts/test/env.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/test/env.js b/scripts/test/env.js
index 8079b551a..35b2d38c8 100644
--- a/scripts/test/env.js
+++ b/scripts/test/env.js
@@ -1 +1,12 @@
+var tempRet0 = 0;
+
+export function setTempRet0(x) {
+ tempRet0 = x;
+}
+
+export function getTempRet0() {
+ return tempRet0;
+}
+
export const __tempMemory__ = 0;
+