diff options
Diffstat (limited to 'test/binaryen.js/sourcemap.js')
-rw-r--r-- | test/binaryen.js/sourcemap.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/test/binaryen.js/sourcemap.js b/test/binaryen.js/sourcemap.js index f3eb7229d..04f188e23 100644 --- a/test/binaryen.js/sourcemap.js +++ b/test/binaryen.js/sourcemap.js @@ -4,8 +4,6 @@ function assert(x) { var module = new Binaryen.Module(); -var signature = module.addFunctionType("i", Binaryen.i32, []); - var fileIndex = module.addDebugInfoFileName("module.c"); console.log(module.getDebugInfoFileName(fileIndex)); @@ -16,7 +14,7 @@ var body = module.block("", [ expr ], Binaryen.i32); -var func = module.addFunction("main", signature, [], body); +var func = module.addFunction("main", Binaryen.none, Binaryen.i32, [], body); module.setDebugLocation(func, expr, fileIndex, 1, 2); module.setDebugLocation(func, body, fileIndex, 0, 3); |