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

     1  {"source_filename": "./table_set.wast",
     2   "commands": [
     3    {"type": "module", "line": 1, "filename": "table_set.0.wasm"}, 
     4    {"type": "assert_return", "line": 29, "action": {"type": "invoke", "field": "get-externref", "args": [{"type": "i32", "value": "0"}]}, "expected": [{"type": "externref", "value": "null"}]}, 
     5    {"type": "assert_return", "line": 30, "action": {"type": "invoke", "field": "set-externref", "args": [{"type": "i32", "value": "0"}, {"type": "externref", "value": "1"}]}, "expected": []}, 
     6    {"type": "assert_return", "line": 31, "action": {"type": "invoke", "field": "get-externref", "args": [{"type": "i32", "value": "0"}]}, "expected": [{"type": "externref", "value": "1"}]}, 
     7    {"type": "assert_return", "line": 32, "action": {"type": "invoke", "field": "set-externref", "args": [{"type": "i32", "value": "0"}, {"type": "externref", "value": "null"}]}, "expected": []}, 
     8    {"type": "assert_return", "line": 33, "action": {"type": "invoke", "field": "get-externref", "args": [{"type": "i32", "value": "0"}]}, "expected": [{"type": "externref", "value": "null"}]}, 
     9    {"type": "assert_return", "line": 35, "action": {"type": "invoke", "field": "get-funcref", "args": [{"type": "i32", "value": "0"}]}, "expected": [{"type": "funcref", "value": "null"}]}, 
    10    {"type": "assert_return", "line": 36, "action": {"type": "invoke", "field": "set-funcref-from", "args": [{"type": "i32", "value": "0"}, {"type": "i32", "value": "1"}]}, "expected": []}, 
    11    {"type": "assert_return", "line": 37, "action": {"type": "invoke", "field": "is_null-funcref", "args": [{"type": "i32", "value": "0"}]}, "expected": [{"type": "i32", "value": "0"}]}, 
    12    {"type": "assert_return", "line": 38, "action": {"type": "invoke", "field": "set-funcref", "args": [{"type": "i32", "value": "0"}, {"type": "funcref", "value": "null"}]}, "expected": []}, 
    13    {"type": "assert_return", "line": 39, "action": {"type": "invoke", "field": "get-funcref", "args": [{"type": "i32", "value": "0"}]}, "expected": [{"type": "funcref", "value": "null"}]}, 
    14    {"type": "assert_trap", "line": 41, "action": {"type": "invoke", "field": "set-externref", "args": [{"type": "i32", "value": "2"}, {"type": "externref", "value": "null"}]}, "text": "out of bounds table access", "expected": []}, 
    15    {"type": "assert_trap", "line": 42, "action": {"type": "invoke", "field": "set-funcref", "args": [{"type": "i32", "value": "3"}, {"type": "funcref", "value": "null"}]}, "text": "out of bounds table access", "expected": []}, 
    16    {"type": "assert_trap", "line": 43, "action": {"type": "invoke", "field": "set-externref", "args": [{"type": "i32", "value": "4294967295"}, {"type": "externref", "value": "null"}]}, "text": "out of bounds table access", "expected": []}, 
    17    {"type": "assert_trap", "line": 44, "action": {"type": "invoke", "field": "set-funcref", "args": [{"type": "i32", "value": "4294967295"}, {"type": "funcref", "value": "null"}]}, "text": "out of bounds table access", "expected": []}, 
    18    {"type": "assert_trap", "line": 46, "action": {"type": "invoke", "field": "set-externref", "args": [{"type": "i32", "value": "2"}, {"type": "externref", "value": "0"}]}, "text": "out of bounds table access", "expected": []}, 
    19    {"type": "assert_trap", "line": 47, "action": {"type": "invoke", "field": "set-funcref-from", "args": [{"type": "i32", "value": "3"}, {"type": "i32", "value": "1"}]}, "text": "out of bounds table access", "expected": []}, 
    20    {"type": "assert_trap", "line": 48, "action": {"type": "invoke", "field": "set-externref", "args": [{"type": "i32", "value": "4294967295"}, {"type": "externref", "value": "0"}]}, "text": "out of bounds table access", "expected": []}, 
    21    {"type": "assert_trap", "line": 49, "action": {"type": "invoke", "field": "set-funcref-from", "args": [{"type": "i32", "value": "4294967295"}, {"type": "i32", "value": "1"}]}, "text": "out of bounds table access", "expected": []}, 
    22    {"type": "assert_invalid", "line": 55, "filename": "table_set.1.wasm", "text": "type mismatch", "module_type": "binary"}, 
    23    {"type": "assert_invalid", "line": 64, "filename": "table_set.2.wasm", "text": "type mismatch", "module_type": "binary"}, 
    24    {"type": "assert_invalid", "line": 73, "filename": "table_set.3.wasm", "text": "type mismatch", "module_type": "binary"}, 
    25    {"type": "assert_invalid", "line": 82, "filename": "table_set.4.wasm", "text": "type mismatch", "module_type": "binary"}, 
    26    {"type": "assert_invalid", "line": 91, "filename": "table_set.5.wasm", "text": "type mismatch", "module_type": "binary"}, 
    27    {"type": "assert_invalid", "line": 101, "filename": "table_set.6.wasm", "text": "type mismatch", "module_type": "binary"}, 
    28    {"type": "assert_invalid", "line": 112, "filename": "table_set.7.wasm", "text": "type mismatch", "module_type": "binary"}]}