{ "source_filename": "tests/cli/function-references/call_ref/br_on_non_null.wast", "commands": [ { "type": "module", "line": 3, "filename": "br_on_non_null.0.wasm", "module_type": "binary" }, { "type": "assert_trap", "line": 38, "action": { "type": "invoke", "field": "unreachable", "args": [] }, "text": "unreachable" }, { "type": "assert_return", "line": 40, "action": { "type": "invoke", "field": "nullable-null", "args": [] }, "expected": [ { "type": "i32", "value": "-1" } ] }, { "type": "assert_return", "line": 41, "action": { "type": "invoke", "field": "nonnullable-f", "args": [] }, "expected": [ { "type": "i32", "value": "7" } ] }, { "type": "assert_return", "line": 42, "action": { "type": "invoke", "field": "nullable-f", "args": [] }, "expected": [ { "type": "i32", "value": "7" } ] }, { "type": "module", "line": 44, "filename": "br_on_non_null.1.wasm", "module_type": "binary" }, { "type": "module", "line": 52, "filename": "br_on_non_null.2.wasm", "module_type": "binary" }, { "type": "assert_return", "line": 73, "action": { "type": "invoke", "field": "args-null", "args": [ { "type": "i32", "value": "3" } ] }, "expected": [ { "type": "i32", "value": "3" } ] }, { "type": "assert_return", "line": 74, "action": { "type": "invoke", "field": "args-f", "args": [ { "type": "i32", "value": "3" } ] }, "expected": [ { "type": "i32", "value": "9" } ] } ] }