diff options
Diffstat (limited to 'test/binaryen.js/reloc.js')
-rw-r--r-- | test/binaryen.js/reloc.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/binaryen.js/reloc.js b/test/binaryen.js/reloc.js index bb011916d..2b7cc9f90 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.setFunctionTable(1, -1, [ "func", "func" ], module.global.get("table_base", binaryen.i32)); - +module.addTable("0", 1, -1); +module.addActiveElementSegment("0", "0", [ "func", "func" ], module.global.get("table_base", binaryen.i32)); assert(module.validate()); console.log(module.emitText()); |