Add preliminary support for throwing and catching uncatchable exceptions.

Additional info:
- WebAssembly "traps" are uncatchable, but are still caught by the trampoline caller.
This commit is contained in:
Lachlan Sneff
2019-03-02 12:57:35 -08:00
parent 5760f6006a
commit 9a90689b93
5 changed files with 120 additions and 11 deletions

View File

@ -6,7 +6,7 @@ static WAT: &'static str = r#"
(module
(type (;0;) (func (param i32) (result i32)))
(func (;0;) (type 0) (param i32) (result i32)
i32.const 42)
unreachable)
(export "select_trap_l" (func 0))
)
"#;