{ "source_filename": "tests/testsuite/proposals/wasm-3.0/throw_ref.wast", "commands": [ { "type": "module", "line": 3, "filename": "throw_ref.0.wasm", "module_type": "binary" }, { "type": "assert_exception", "line": 99, "action": { "type": "invoke", "field": "catch-throw_ref-0", "args": [] } }, { "type": "assert_exception", "line": 101, "action": { "type": "invoke", "field": "catch-throw_ref-1", "args": [ { "type": "i32", "value": "0" } ] } }, { "type": "assert_return", "line": 102, "action": { "type": "invoke", "field": "catch-throw_ref-1", "args": [ { "type": "i32", "value": "1" } ] }, "expected": [ { "type": "i32", "value": "23" } ] }, { "type": "assert_exception", "line": 104, "action": { "type": "invoke", "field": "catchall-throw_ref-0", "args": [] } }, { "type": "assert_exception", "line": 106, "action": { "type": "invoke", "field": "catchall-throw_ref-1", "args": [ { "type": "i32", "value": "0" } ] } }, { "type": "assert_return", "line": 107, "action": { "type": "invoke", "field": "catchall-throw_ref-1", "args": [ { "type": "i32", "value": "1" } ] }, "expected": [ { "type": "i32", "value": "23" } ] }, { "type": "assert_exception", "line": 108, "action": { "type": "invoke", "field": "throw_ref-nested", "args": [ { "type": "i32", "value": "0" } ] } }, { "type": "assert_exception", "line": 109, "action": { "type": "invoke", "field": "throw_ref-nested", "args": [ { "type": "i32", "value": "1" } ] } }, { "type": "assert_return", "line": 110, "action": { "type": "invoke", "field": "throw_ref-nested", "args": [ { "type": "i32", "value": "2" } ] }, "expected": [ { "type": "i32", "value": "23" } ] }, { "type": "assert_return", "line": 112, "action": { "type": "invoke", "field": "throw_ref-recatch", "args": [ { "type": "i32", "value": "0" } ] }, "expected": [ { "type": "i32", "value": "23" } ] }, { "type": "assert_return", "line": 113, "action": { "type": "invoke", "field": "throw_ref-recatch", "args": [ { "type": "i32", "value": "1" } ] }, "expected": [ { "type": "i32", "value": "42" } ] }, { "type": "assert_exception", "line": 115, "action": { "type": "invoke", "field": "throw_ref-stack-polymorphism", "args": [] } }, { "type": "assert_invalid", "line": 117, "filename": "throw_ref.1.wasm", "module_type": "binary", "text": "type mismatch" }, { "type": "assert_invalid", "line": 118, "filename": "throw_ref.2.wasm", "module_type": "binary", "text": "type mismatch" } ] }