summaryrefslogtreecommitdiff
path: root/test/binaryen.js/emit_asmjs.js.txt
diff options
context:
space:
mode:
authorJay Phelps <hello@jayphelps.com>2018-09-01 10:58:11 -0400
committerAlon Zakai <alonzakai@gmail.com>2018-09-01 07:58:11 -0700
commit9750c18faba7be48f9e086fd2d00838ca4ae9d0f (patch)
tree2610f3c7fb2613804ba649083cd838703a569150 /test/binaryen.js/emit_asmjs.js.txt
parent480acf06144a056ee3569823e7cb65fea42cf808 (diff)
downloadbinaryen-9750c18faba7be48f9e086fd2d00838ca4ae9d0f.tar.gz
binaryen-9750c18faba7be48f9e086fd2d00838ca4ae9d0f.tar.bz2
binaryen-9750c18faba7be48f9e086fd2d00838ca4ae9d0f.zip
BinaryenSetFunctionTable now accepts array of func names not funcs. (#1650)
This allows using imports in the table. Fixes #1645
Diffstat (limited to 'test/binaryen.js/emit_asmjs.js.txt')
-rw-r--r--test/binaryen.js/emit_asmjs.js.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/binaryen.js/emit_asmjs.js.txt b/test/binaryen.js/emit_asmjs.js.txt
index b4fff8fe0..0bff3896c 100644
--- a/test/binaryen.js/emit_asmjs.js.txt
+++ b/test/binaryen.js/emit_asmjs.js.txt
@@ -31,3 +31,6 @@ function asmFunc(global, env, buffer) {
};
}
+const memasmFunc = new ArrayBuffer(65536);
+const retasmFunc = asmFunc({Math,Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,NaN,Infinity}, {abort:function() { throw new Error('abort'); }},memasmFunc);
+