summaryrefslogtreecommitdiff
path: root/test/binaryen.js/reloc.js
diff options
context:
space:
mode:
authorMax Graey <maxgraey@gmail.com>2021-08-27 23:44:38 +0300
committerGitHub <noreply@github.com>2021-08-27 20:44:38 +0000
commitbabd339e150ba80b0a64d6a627c07d1f557aa342 (patch)
tree71b81d113e094e8d52257e23a13c521603458217 /test/binaryen.js/reloc.js
parentc2007eab91ed60ac4bc8a6a555e9dc3e76ef2242 (diff)
downloadbinaryen-babd339e150ba80b0a64d6a627c07d1f557aa342.tar.gz
binaryen-babd339e150ba80b0a64d6a627c07d1f557aa342.tar.bz2
binaryen-babd339e150ba80b0a64d6a627c07d1f557aa342.zip
[API] Add type argument for BinaryenAddTable method (#4107)
In the JS API this is optional and it defaults to `funcref`.
Diffstat (limited to 'test/binaryen.js/reloc.js')
-rw-r--r--test/binaryen.js/reloc.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/binaryen.js/reloc.js b/test/binaryen.js/reloc.js
index 2b7cc9f90..0235ea413 100644
--- a/test/binaryen.js/reloc.js
+++ b/test/binaryen.js/reloc.js
@@ -15,7 +15,7 @@ module.setMemory(1, -1, null, [
var func = module.addFunction("func", binaryen.none, binaryen.none, [], module.nop());
module.addGlobalImport("table_base", "env", "table_base", binaryen.i32, false);
-module.addTable("0", 1, -1);
+module.addTable("0", 1, -1, binaryen.funcref);
module.addActiveElementSegment("0", "0", [ "func", "func" ], module.global.get("table_base", binaryen.i32));
assert(module.validate());
console.log(module.emitText());