summaryrefslogtreecommitdiff
path: root/test/binaryen.js/exception-handling.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/binaryen.js/exception-handling.js')
-rw-r--r--test/binaryen.js/exception-handling.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/binaryen.js/exception-handling.js b/test/binaryen.js/exception-handling.js
index adf67d2fa..00faf8f26 100644
--- a/test/binaryen.js/exception-handling.js
+++ b/test/binaryen.js/exception-handling.js
@@ -20,8 +20,7 @@ var module = new Binaryen.Module();
module.setFeatures(Binaryen.Features.ExceptionHandling);
var v = module.addFunctionType("v", Binaryen.none, []);
-var vi = module.addFunctionType("vi", Binaryen.none, [Binaryen.i32]);
-var event_ = module.addEvent("e", 0, vi);
+var event_ = module.addEvent("e", 0, Binaryen.i32, Binaryen.none);
// (try
// (throw $e (i32.const 0))