summaryrefslogtreecommitdiff
path: root/test/binaryen.js/kitchen-sink.js
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/kitchen-sink.js
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/kitchen-sink.js')
-rw-r--r--test/binaryen.js/kitchen-sink.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/binaryen.js/kitchen-sink.js b/test/binaryen.js/kitchen-sink.js
index c5f1f059a..1e1d29033 100644
--- a/test/binaryen.js/kitchen-sink.js
+++ b/test/binaryen.js/kitchen-sink.js
@@ -250,7 +250,7 @@ function test_core() {
// Function table. One per module
- module.setFunctionTable([ sinker ]);
+ module.setFunctionTable([ Binaryen.getFunctionInfo(sinker).name ]);
// Memory. One per module