summaryrefslogtreecommitdiff
path: root/test/binaryen.js/exception-handling.js.txt
diff options
context:
space:
mode:
Diffstat (limited to 'test/binaryen.js/exception-handling.js.txt')
-rw-r--r--test/binaryen.js/exception-handling.js.txt32
1 files changed, 32 insertions, 0 deletions
diff --git a/test/binaryen.js/exception-handling.js.txt b/test/binaryen.js/exception-handling.js.txt
new file mode 100644
index 000000000..902ac55e6
--- /dev/null
+++ b/test/binaryen.js/exception-handling.js.txt
@@ -0,0 +1,32 @@
+(module
+ (type $v (func))
+ (type $vi (func (param i32)))
+ (event $e (attr 0) (param i32))
+ (func $test (; 0 ;) (type $v)
+ (local $0 exnref)
+ (try
+ (throw $e
+ (i32.const 0)
+ )
+ (catch
+ (local.set $0
+ (exnref.pop)
+ )
+ (drop
+ (block $l (result i32)
+ (rethrow
+ (br_on_exn $l $e
+ (local.get $0)
+ )
+ )
+ )
+ )
+ )
+ )
+ )
+)
+
+getExpressionInfo(throw) = {"id":39,"type":7,"event":"e"}
+getExpressionInfo(br_on_exn) = {"id":41,"type":6,"name":"l","event":"e"}
+getExpressionInfo(rethrow) = {"id":40,"type":7}
+getExpressionInfo(try) = {"id":38,"type":0}