summaryrefslogtreecommitdiff
path: root/test/binaryen.js/reloc.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/binaryen.js/reloc.js')
-rw-r--r--test/binaryen.js/reloc.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/binaryen.js/reloc.js b/test/binaryen.js/reloc.js
index 68c29228d..9666d17fd 100644
--- a/test/binaryen.js/reloc.js
+++ b/test/binaryen.js/reloc.js
@@ -16,8 +16,7 @@ module.setMemory(1, -1, null, [
// table with offset
-var signature = module.addFunctionType("v", Binaryen.none, []);
-var func = module.addFunction("func", signature, [], module.nop());
+var func = module.addFunction("func", Binaryen.none, Binaryen.none, [], module.nop());
module.addGlobalImport("table_base", "env", "table_base", Binaryen.i32, false);
module.setFunctionTable(1, -1, [ "func", "func" ], module.global.get("table_base", Binaryen.i32));