github.com/wasilibs/wazerox@v0.0.0-20240124024944-4923be63ab5f/internal/integration_test/spectest/v1/testdata/func_ptrs.json (about) 1 {"source_filename": "./func_ptrs.wast", 2 "commands": [ 3 {"type": "module", "line": 1, "filename": "func_ptrs.0.wasm"}, 4 {"type": "assert_return", "line": 27, "action": {"type": "invoke", "field": "one", "args": []}, "expected": [{"type": "i32", "value": "13"}]}, 5 {"type": "assert_return", "line": 28, "action": {"type": "invoke", "field": "two", "args": [{"type": "i32", "value": "13"}]}, "expected": [{"type": "i32", "value": "14"}]}, 6 {"type": "assert_return", "line": 29, "action": {"type": "invoke", "field": "three", "args": [{"type": "i32", "value": "13"}]}, "expected": [{"type": "i32", "value": "11"}]}, 7 {"type": "action", "line": 30, "action": {"type": "invoke", "field": "four", "args": [{"type": "i32", "value": "83"}]}, "expected": []}, 8 {"type": "assert_invalid", "line": 32, "filename": "func_ptrs.1.wasm", "text": "unknown table", "module_type": "binary"}, 9 {"type": "assert_invalid", "line": 33, "filename": "func_ptrs.2.wasm", "text": "unknown table", "module_type": "binary"}, 10 {"type": "assert_invalid", "line": 36, "filename": "func_ptrs.3.wasm", "text": "type mismatch", "module_type": "binary"}, 11 {"type": "assert_invalid", "line": 40, "filename": "func_ptrs.4.wasm", "text": "constant expression required", "module_type": "binary"}, 12 {"type": "assert_invalid", "line": 44, "filename": "func_ptrs.5.wasm", "text": "constant expression required", "module_type": "binary"}, 13 {"type": "assert_invalid", "line": 48, "filename": "func_ptrs.6.wasm", "text": "unknown type", "module_type": "binary"}, 14 {"type": "assert_invalid", "line": 49, "filename": "func_ptrs.7.wasm", "text": "unknown type", "module_type": "binary"}, 15 {"type": "module", "line": 51, "filename": "func_ptrs.8.wasm"}, 16 {"type": "assert_return", "line": 71, "action": {"type": "invoke", "field": "callt", "args": [{"type": "i32", "value": "0"}]}, "expected": [{"type": "i32", "value": "1"}]}, 17 {"type": "assert_return", "line": 72, "action": {"type": "invoke", "field": "callt", "args": [{"type": "i32", "value": "1"}]}, "expected": [{"type": "i32", "value": "2"}]}, 18 {"type": "assert_return", "line": 73, "action": {"type": "invoke", "field": "callt", "args": [{"type": "i32", "value": "2"}]}, "expected": [{"type": "i32", "value": "3"}]}, 19 {"type": "assert_return", "line": 74, "action": {"type": "invoke", "field": "callt", "args": [{"type": "i32", "value": "3"}]}, "expected": [{"type": "i32", "value": "4"}]}, 20 {"type": "assert_return", "line": 75, "action": {"type": "invoke", "field": "callt", "args": [{"type": "i32", "value": "4"}]}, "expected": [{"type": "i32", "value": "5"}]}, 21 {"type": "assert_return", "line": 76, "action": {"type": "invoke", "field": "callt", "args": [{"type": "i32", "value": "5"}]}, "expected": [{"type": "i32", "value": "1"}]}, 22 {"type": "assert_return", "line": 77, "action": {"type": "invoke", "field": "callt", "args": [{"type": "i32", "value": "6"}]}, "expected": [{"type": "i32", "value": "3"}]}, 23 {"type": "assert_trap", "line": 78, "action": {"type": "invoke", "field": "callt", "args": [{"type": "i32", "value": "7"}]}, "text": "undefined element", "expected": [{"type": "i32"}]}, 24 {"type": "assert_trap", "line": 79, "action": {"type": "invoke", "field": "callt", "args": [{"type": "i32", "value": "100"}]}, "text": "undefined element", "expected": [{"type": "i32"}]}, 25 {"type": "assert_trap", "line": 80, "action": {"type": "invoke", "field": "callt", "args": [{"type": "i32", "value": "4294967295"}]}, "text": "undefined element", "expected": [{"type": "i32"}]}, 26 {"type": "assert_return", "line": 82, "action": {"type": "invoke", "field": "callu", "args": [{"type": "i32", "value": "0"}]}, "expected": [{"type": "i32", "value": "1"}]}, 27 {"type": "assert_return", "line": 83, "action": {"type": "invoke", "field": "callu", "args": [{"type": "i32", "value": "1"}]}, "expected": [{"type": "i32", "value": "2"}]}, 28 {"type": "assert_return", "line": 84, "action": {"type": "invoke", "field": "callu", "args": [{"type": "i32", "value": "2"}]}, "expected": [{"type": "i32", "value": "3"}]}, 29 {"type": "assert_return", "line": 85, "action": {"type": "invoke", "field": "callu", "args": [{"type": "i32", "value": "3"}]}, "expected": [{"type": "i32", "value": "4"}]}, 30 {"type": "assert_return", "line": 86, "action": {"type": "invoke", "field": "callu", "args": [{"type": "i32", "value": "4"}]}, "expected": [{"type": "i32", "value": "5"}]}, 31 {"type": "assert_return", "line": 87, "action": {"type": "invoke", "field": "callu", "args": [{"type": "i32", "value": "5"}]}, "expected": [{"type": "i32", "value": "1"}]}, 32 {"type": "assert_return", "line": 88, "action": {"type": "invoke", "field": "callu", "args": [{"type": "i32", "value": "6"}]}, "expected": [{"type": "i32", "value": "3"}]}, 33 {"type": "assert_trap", "line": 89, "action": {"type": "invoke", "field": "callu", "args": [{"type": "i32", "value": "7"}]}, "text": "undefined element", "expected": [{"type": "i32"}]}, 34 {"type": "assert_trap", "line": 90, "action": {"type": "invoke", "field": "callu", "args": [{"type": "i32", "value": "100"}]}, "text": "undefined element", "expected": [{"type": "i32"}]}, 35 {"type": "assert_trap", "line": 91, "action": {"type": "invoke", "field": "callu", "args": [{"type": "i32", "value": "4294967295"}]}, "text": "undefined element", "expected": [{"type": "i32"}]}, 36 {"type": "module", "line": 93, "filename": "func_ptrs.9.wasm"}, 37 {"type": "assert_return", "line": 105, "action": {"type": "invoke", "field": "callt", "args": [{"type": "i32", "value": "0"}]}, "expected": [{"type": "i32", "value": "1"}]}, 38 {"type": "assert_return", "line": 106, "action": {"type": "invoke", "field": "callt", "args": [{"type": "i32", "value": "1"}]}, "expected": [{"type": "i32", "value": "2"}]}]}