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

     1  {"source_filename": "./ref_is_null.wast",
     2   "commands": [
     3    {"type": "module", "line": 1, "filename": "ref_is_null.0.wasm"}, 
     4    {"type": "assert_return", "line": 30, "action": {"type": "invoke", "field": "funcref", "args": [{"type": "funcref", "value": "null"}]}, "expected": [{"type": "i32", "value": "1"}]}, 
     5    {"type": "assert_return", "line": 31, "action": {"type": "invoke", "field": "externref", "args": [{"type": "externref", "value": "null"}]}, "expected": [{"type": "i32", "value": "1"}]}, 
     6    {"type": "assert_return", "line": 33, "action": {"type": "invoke", "field": "externref", "args": [{"type": "externref", "value": "1"}]}, "expected": [{"type": "i32", "value": "0"}]}, 
     7    {"type": "action", "line": 35, "action": {"type": "invoke", "field": "init", "args": [{"type": "externref", "value": "0"}]}, "expected": []}, 
     8    {"type": "assert_return", "line": 37, "action": {"type": "invoke", "field": "funcref-elem", "args": [{"type": "i32", "value": "0"}]}, "expected": [{"type": "i32", "value": "1"}]}, 
     9    {"type": "assert_return", "line": 38, "action": {"type": "invoke", "field": "externref-elem", "args": [{"type": "i32", "value": "0"}]}, "expected": [{"type": "i32", "value": "1"}]}, 
    10    {"type": "assert_return", "line": 40, "action": {"type": "invoke", "field": "funcref-elem", "args": [{"type": "i32", "value": "1"}]}, "expected": [{"type": "i32", "value": "0"}]}, 
    11    {"type": "assert_return", "line": 41, "action": {"type": "invoke", "field": "externref-elem", "args": [{"type": "i32", "value": "1"}]}, "expected": [{"type": "i32", "value": "0"}]}, 
    12    {"type": "action", "line": 43, "action": {"type": "invoke", "field": "deinit", "args": []}, "expected": []}, 
    13    {"type": "assert_return", "line": 45, "action": {"type": "invoke", "field": "funcref-elem", "args": [{"type": "i32", "value": "0"}]}, "expected": [{"type": "i32", "value": "1"}]}, 
    14    {"type": "assert_return", "line": 46, "action": {"type": "invoke", "field": "externref-elem", "args": [{"type": "i32", "value": "0"}]}, "expected": [{"type": "i32", "value": "1"}]}, 
    15    {"type": "assert_return", "line": 48, "action": {"type": "invoke", "field": "funcref-elem", "args": [{"type": "i32", "value": "1"}]}, "expected": [{"type": "i32", "value": "1"}]}, 
    16    {"type": "assert_return", "line": 49, "action": {"type": "invoke", "field": "externref-elem", "args": [{"type": "i32", "value": "1"}]}, "expected": [{"type": "i32", "value": "1"}]}, 
    17    {"type": "assert_invalid", "line": 52, "filename": "ref_is_null.1.wasm", "text": "type mismatch", "module_type": "binary"}, 
    18    {"type": "assert_invalid", "line": 56, "filename": "ref_is_null.2.wasm", "text": "type mismatch", "module_type": "binary"}]}