wa-lang.org/wazero@v1.0.2/internal/integration_test/spectest/v2/testdata/unwind.json (about)

     1  {"source_filename": "./unwind.wast",
     2   "commands": [
     3    {"type": "module", "line": 3, "filename": "unwind.0.wasm"}, 
     4    {"type": "assert_trap", "line": 212, "action": {"type": "invoke", "field": "func-unwind-by-unreachable", "args": []}, "text": "unreachable", "expected": []}, 
     5    {"type": "assert_return", "line": 213, "action": {"type": "invoke", "field": "func-unwind-by-br", "args": []}, "expected": []}, 
     6    {"type": "assert_return", "line": 214, "action": {"type": "invoke", "field": "func-unwind-by-br-value", "args": []}, "expected": [{"type": "i32", "value": "9"}]}, 
     7    {"type": "assert_return", "line": 215, "action": {"type": "invoke", "field": "func-unwind-by-br_if", "args": []}, "expected": []}, 
     8    {"type": "assert_return", "line": 216, "action": {"type": "invoke", "field": "func-unwind-by-br_if-value", "args": []}, "expected": [{"type": "i32", "value": "9"}]}, 
     9    {"type": "assert_return", "line": 217, "action": {"type": "invoke", "field": "func-unwind-by-br_table", "args": []}, "expected": []}, 
    10    {"type": "assert_return", "line": 218, "action": {"type": "invoke", "field": "func-unwind-by-br_table-value", "args": []}, "expected": [{"type": "i32", "value": "9"}]}, 
    11    {"type": "assert_return", "line": 219, "action": {"type": "invoke", "field": "func-unwind-by-return", "args": []}, "expected": [{"type": "i32", "value": "9"}]}, 
    12    {"type": "assert_trap", "line": 221, "action": {"type": "invoke", "field": "block-unwind-by-unreachable", "args": []}, "text": "unreachable", "expected": []}, 
    13    {"type": "assert_return", "line": 222, "action": {"type": "invoke", "field": "block-unwind-by-br", "args": []}, "expected": [{"type": "i32", "value": "9"}]}, 
    14    {"type": "assert_return", "line": 223, "action": {"type": "invoke", "field": "block-unwind-by-br-value", "args": []}, "expected": [{"type": "i32", "value": "9"}]}, 
    15    {"type": "assert_return", "line": 224, "action": {"type": "invoke", "field": "block-unwind-by-br_if", "args": []}, "expected": [{"type": "i32", "value": "9"}]}, 
    16    {"type": "assert_return", "line": 225, "action": {"type": "invoke", "field": "block-unwind-by-br_if-value", "args": []}, "expected": [{"type": "i32", "value": "9"}]}, 
    17    {"type": "assert_return", "line": 226, "action": {"type": "invoke", "field": "block-unwind-by-br_table", "args": []}, "expected": [{"type": "i32", "value": "9"}]}, 
    18    {"type": "assert_return", "line": 227, "action": {"type": "invoke", "field": "block-unwind-by-br_table-value", "args": []}, "expected": [{"type": "i32", "value": "9"}]}, 
    19    {"type": "assert_return", "line": 228, "action": {"type": "invoke", "field": "block-unwind-by-return", "args": []}, "expected": [{"type": "i32", "value": "9"}]}, 
    20    {"type": "assert_trap", "line": 230, "action": {"type": "invoke", "field": "block-nested-unwind-by-unreachable", "args": []}, "text": "unreachable", "expected": [{"type": "i32"}]}, 
    21    {"type": "assert_return", "line": 231, "action": {"type": "invoke", "field": "block-nested-unwind-by-br", "args": []}, "expected": [{"type": "i32", "value": "9"}]}, 
    22    {"type": "assert_return", "line": 232, "action": {"type": "invoke", "field": "block-nested-unwind-by-br-value", "args": []}, "expected": [{"type": "i32", "value": "9"}]}, 
    23    {"type": "assert_return", "line": 233, "action": {"type": "invoke", "field": "block-nested-unwind-by-br_if", "args": []}, "expected": [{"type": "i32", "value": "9"}]}, 
    24    {"type": "assert_return", "line": 234, "action": {"type": "invoke", "field": "block-nested-unwind-by-br_if-value", "args": []}, "expected": [{"type": "i32", "value": "9"}]}, 
    25    {"type": "assert_return", "line": 235, "action": {"type": "invoke", "field": "block-nested-unwind-by-br_table", "args": []}, "expected": [{"type": "i32", "value": "9"}]}, 
    26    {"type": "assert_return", "line": 236, "action": {"type": "invoke", "field": "block-nested-unwind-by-br_table-value", "args": []}, "expected": [{"type": "i32", "value": "9"}]}, 
    27    {"type": "assert_return", "line": 237, "action": {"type": "invoke", "field": "block-nested-unwind-by-return", "args": []}, "expected": [{"type": "i32", "value": "9"}]}, 
    28    {"type": "assert_trap", "line": 239, "action": {"type": "invoke", "field": "unary-after-unreachable", "args": []}, "text": "unreachable", "expected": [{"type": "i32"}]}, 
    29    {"type": "assert_return", "line": 240, "action": {"type": "invoke", "field": "unary-after-br", "args": []}, "expected": [{"type": "i32", "value": "9"}]}, 
    30    {"type": "assert_return", "line": 241, "action": {"type": "invoke", "field": "unary-after-br_if", "args": []}, "expected": [{"type": "i32", "value": "9"}]}, 
    31    {"type": "assert_return", "line": 242, "action": {"type": "invoke", "field": "unary-after-br_table", "args": []}, "expected": [{"type": "i32", "value": "9"}]}, 
    32    {"type": "assert_return", "line": 243, "action": {"type": "invoke", "field": "unary-after-return", "args": []}, "expected": [{"type": "i32", "value": "9"}]}, 
    33    {"type": "assert_trap", "line": 245, "action": {"type": "invoke", "field": "binary-after-unreachable", "args": []}, "text": "unreachable", "expected": [{"type": "i32"}]}, 
    34    {"type": "assert_return", "line": 246, "action": {"type": "invoke", "field": "binary-after-br", "args": []}, "expected": [{"type": "i32", "value": "9"}]}, 
    35    {"type": "assert_return", "line": 247, "action": {"type": "invoke", "field": "binary-after-br_if", "args": []}, "expected": [{"type": "i32", "value": "9"}]}, 
    36    {"type": "assert_return", "line": 248, "action": {"type": "invoke", "field": "binary-after-br_table", "args": []}, "expected": [{"type": "i32", "value": "9"}]}, 
    37    {"type": "assert_return", "line": 249, "action": {"type": "invoke", "field": "binary-after-return", "args": []}, "expected": [{"type": "i32", "value": "9"}]}, 
    38    {"type": "assert_trap", "line": 251, "action": {"type": "invoke", "field": "select-after-unreachable", "args": []}, "text": "unreachable", "expected": [{"type": "i32"}]}, 
    39    {"type": "assert_return", "line": 252, "action": {"type": "invoke", "field": "select-after-br", "args": []}, "expected": [{"type": "i32", "value": "9"}]}, 
    40    {"type": "assert_return", "line": 253, "action": {"type": "invoke", "field": "select-after-br_if", "args": []}, "expected": [{"type": "i32", "value": "9"}]}, 
    41    {"type": "assert_return", "line": 254, "action": {"type": "invoke", "field": "select-after-br_table", "args": []}, "expected": [{"type": "i32", "value": "9"}]}, 
    42    {"type": "assert_return", "line": 255, "action": {"type": "invoke", "field": "select-after-return", "args": []}, "expected": [{"type": "i32", "value": "9"}]}, 
    43    {"type": "assert_trap", "line": 257, "action": {"type": "invoke", "field": "block-value-after-unreachable", "args": []}, "text": "unreachable", "expected": [{"type": "i32"}]}, 
    44    {"type": "assert_return", "line": 258, "action": {"type": "invoke", "field": "block-value-after-br", "args": []}, "expected": [{"type": "i32", "value": "9"}]}, 
    45    {"type": "assert_return", "line": 259, "action": {"type": "invoke", "field": "block-value-after-br_if", "args": []}, "expected": [{"type": "i32", "value": "9"}]}, 
    46    {"type": "assert_return", "line": 260, "action": {"type": "invoke", "field": "block-value-after-br_table", "args": []}, "expected": [{"type": "i32", "value": "9"}]}, 
    47    {"type": "assert_return", "line": 261, "action": {"type": "invoke", "field": "block-value-after-return", "args": []}, "expected": [{"type": "i32", "value": "9"}]}, 
    48    {"type": "assert_trap", "line": 263, "action": {"type": "invoke", "field": "loop-value-after-unreachable", "args": []}, "text": "unreachable", "expected": [{"type": "i32"}]}, 
    49    {"type": "assert_return", "line": 264, "action": {"type": "invoke", "field": "loop-value-after-br", "args": []}, "expected": [{"type": "i32", "value": "9"}]}, 
    50    {"type": "assert_return", "line": 265, "action": {"type": "invoke", "field": "loop-value-after-br_if", "args": []}, "expected": [{"type": "i32", "value": "9"}]}, 
    51    {"type": "assert_return", "line": 266, "action": {"type": "invoke", "field": "loop-value-after-br_table", "args": []}, "expected": [{"type": "i32", "value": "9"}]}, 
    52    {"type": "assert_return", "line": 267, "action": {"type": "invoke", "field": "loop-value-after-return", "args": []}, "expected": [{"type": "i32", "value": "9"}]}]}