diff options
Diffstat (limited to 'test/exception-handling.wast')
-rw-r--r-- | test/exception-handling.wast | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/exception-handling.wast b/test/exception-handling.wast index 45cb21910..833010e73 100644 --- a/test/exception-handling.wast +++ b/test/exception-handling.wast @@ -2,6 +2,7 @@ (event $e-i32 (attr 0) (param i32)) (event $e-i64 (attr 0) (param i64)) (event $e-i32-i64 (attr 0) (param i32 i64)) + (event $e-empty (attr 0)) (func $foo) (func $bar) @@ -188,6 +189,12 @@ ) (delegate 0) ) + + ;; 'catch' body can be empty when the event's type is none. + (try + (do) + (catch $e-empty) + ) ) (func $rethrow-test |