{ "source_filename": "tests/cli/legacy-exceptions/rethrow.wast", "commands": [ { "type": "module", "line": 5, "filename": "rethrow.0.wasm", "module_type": "binary" }, { "type": "assert_exception", "line": 102, "action": { "type": "invoke", "field": "catch-rethrow-0", "args": [] } }, { "type": "assert_exception", "line": 104, "action": { "type": "invoke", "field": "catch-rethrow-1", "args": [ { "type": "i32", "value": "0" } ] } }, { "type": "assert_return", "line": 105, "action": { "type": "invoke", "field": "catch-rethrow-1", "args": [ { "type": "i32", "value": "1" } ] }, "expected": [ { "type": "i32", "value": "23" } ] }, { "type": "assert_exception", "line": 107, "action": { "type": "invoke", "field": "catchall-rethrow-0", "args": [] } }, { "type": "assert_exception", "line": 109, "action": { "type": "invoke", "field": "catchall-rethrow-1", "args": [ { "type": "i32", "value": "0" } ] } }, { "type": "assert_return", "line": 110, "action": { "type": "invoke", "field": "catchall-rethrow-1", "args": [ { "type": "i32", "value": "1" } ] }, "expected": [ { "type": "i32", "value": "23" } ] }, { "type": "assert_exception", "line": 111, "action": { "type": "invoke", "field": "rethrow-nested", "args": [ { "type": "i32", "value": "0" } ] } }, { "type": "assert_exception", "line": 112, "action": { "type": "invoke", "field": "rethrow-nested", "args": [ { "type": "i32", "value": "1" } ] } }, { "type": "assert_return", "line": 113, "action": { "type": "invoke", "field": "rethrow-nested", "args": [ { "type": "i32", "value": "2" } ] }, "expected": [ { "type": "i32", "value": "23" } ] }, { "type": "assert_return", "line": 115, "action": { "type": "invoke", "field": "rethrow-recatch", "args": [ { "type": "i32", "value": "0" } ] }, "expected": [ { "type": "i32", "value": "23" } ] }, { "type": "assert_return", "line": 116, "action": { "type": "invoke", "field": "rethrow-recatch", "args": [ { "type": "i32", "value": "1" } ] }, "expected": [ { "type": "i32", "value": "42" } ] }, { "type": "assert_exception", "line": 118, "action": { "type": "invoke", "field": "rethrow-stack-polymorphism", "args": [] } }, { "type": "assert_invalid", "line": 120, "filename": "rethrow.1.wasm", "module_type": "binary", "text": "invalid rethrow label" }, { "type": "assert_invalid", "line": 121, "filename": "rethrow.2.wasm", "module_type": "binary", "text": "invalid rethrow label" }, { "type": "assert_invalid", "line": 122, "filename": "rethrow.3.wasm", "module_type": "binary", "text": "invalid rethrow label" } ] }