{ "source_filename": "tests/cli/legacy-exceptions/throw.wast", "commands": [ { "type": "module", "line": 5, "filename": "throw.0.wasm", "module_type": "binary" }, { "type": "assert_return", "line": 44, "action": { "type": "invoke", "field": "throw-if", "args": [ { "type": "i32", "value": "0" } ] }, "expected": [ { "type": "i32", "value": "0" } ] }, { "type": "assert_exception", "line": 45, "action": { "type": "invoke", "field": "throw-if", "args": [ { "type": "i32", "value": "10" } ] } }, { "type": "assert_exception", "line": 46, "action": { "type": "invoke", "field": "throw-if", "args": [ { "type": "i32", "value": "-1" } ] } }, { "type": "assert_exception", "line": 48, "action": { "type": "invoke", "field": "throw-param-f32", "args": [ { "type": "f32", "value": "1084227584" } ] } }, { "type": "assert_exception", "line": 49, "action": { "type": "invoke", "field": "throw-param-i64", "args": [ { "type": "i64", "value": "5" } ] } }, { "type": "assert_exception", "line": 50, "action": { "type": "invoke", "field": "throw-param-f64", "args": [ { "type": "f64", "value": "4617315517961601024" } ] } }, { "type": "assert_return", "line": 52, "action": { "type": "invoke", "field": "test-throw-1-2", "args": [] }, "expected": [] }, { "type": "assert_invalid", "line": 54, "filename": "throw.1.wasm", "module_type": "binary", "text": "unknown tag 0" }, { "type": "assert_invalid", "line": 55, "filename": "throw.2.wasm", "module_type": "binary", "text": "type mismatch" }, { "type": "assert_invalid", "line": 57, "filename": "throw.3.wasm", "module_type": "binary", "text": "type mismatch" } ] }