{ "source_filename": "tests/testsuite/proposals/wasm-3.0/array.wast", "commands": [ { "type": "module", "line": 3, "filename": "array.0.wasm", "module_type": "binary" }, { "type": "assert_invalid", "line": 28, "filename": "array.1.wasm", "module_type": "binary", "text": "unknown type" }, { "type": "module", "line": 37, "filename": "array.2.wasm", "module_type": "binary" }, { "type": "assert_invalid", "line": 49, "filename": "array.3.wasm", "module_type": "binary", "text": "unknown type" }, { "type": "assert_invalid", "line": 53, "filename": "array.4.wasm", "module_type": "binary", "text": "unknown type" }, { "type": "module", "line": 60, "filename": "array.5.wasm", "module_type": "binary" }, { "type": "assert_return", "line": 97, "action": { "type": "invoke", "field": "new", "args": [] }, "expected": [ { "type": "arrayref" } ] }, { "type": "assert_return", "line": 98, "action": { "type": "invoke", "field": "new", "args": [] }, "expected": [ { "type": "eqref" } ] }, { "type": "assert_return", "line": 99, "action": { "type": "invoke", "field": "get", "args": [ { "type": "i32", "value": "0" } ] }, "expected": [ { "type": "f32", "value": "0" } ] }, { "type": "assert_return", "line": 100, "action": { "type": "invoke", "field": "set_get", "args": [ { "type": "i32", "value": "1" }, { "type": "f32", "value": "1088421888" } ] }, "expected": [ { "type": "f32", "value": "1088421888" } ] }, { "type": "assert_return", "line": 101, "action": { "type": "invoke", "field": "len", "args": [] }, "expected": [ { "type": "i32", "value": "3" } ] }, { "type": "assert_trap", "line": 103, "action": { "type": "invoke", "field": "get", "args": [ { "type": "i32", "value": "10" } ] }, "text": "out of bounds array access" }, { "type": "assert_trap", "line": 104, "action": { "type": "invoke", "field": "set_get", "args": [ { "type": "i32", "value": "10" }, { "type": "f32", "value": "1088421888" } ] }, "text": "out of bounds array access" }, { "type": "module", "line": 106, "filename": "array.6.wasm", "module_type": "binary" }, { "type": "assert_return", "line": 142, "action": { "type": "invoke", "field": "new", "args": [] }, "expected": [ { "type": "arrayref" } ] }, { "type": "assert_return", "line": 143, "action": { "type": "invoke", "field": "new", "args": [] }, "expected": [ { "type": "eqref" } ] }, { "type": "assert_return", "line": 144, "action": { "type": "invoke", "field": "get", "args": [ { "type": "i32", "value": "0" } ] }, "expected": [ { "type": "f32", "value": "1065353216" } ] }, { "type": "assert_return", "line": 145, "action": { "type": "invoke", "field": "set_get", "args": [ { "type": "i32", "value": "1" }, { "type": "f32", "value": "1088421888" } ] }, "expected": [ { "type": "f32", "value": "1088421888" } ] }, { "type": "assert_return", "line": 146, "action": { "type": "invoke", "field": "len", "args": [] }, "expected": [ { "type": "i32", "value": "2" } ] }, { "type": "assert_trap", "line": 148, "action": { "type": "invoke", "field": "get", "args": [ { "type": "i32", "value": "10" } ] }, "text": "out of bounds array access" }, { "type": "assert_trap", "line": 149, "action": { "type": "invoke", "field": "set_get", "args": [ { "type": "i32", "value": "10" }, { "type": "f32", "value": "1088421888" } ] }, "text": "out of bounds array access" }, { "type": "module", "line": 151, "filename": "array.7.wasm", "module_type": "binary" }, { "type": "assert_return", "line": 202, "action": { "type": "invoke", "field": "new", "args": [] }, "expected": [ { "type": "arrayref" } ] }, { "type": "assert_return", "line": 203, "action": { "type": "invoke", "field": "new", "args": [] }, "expected": [ { "type": "eqref" } ] }, { "type": "assert_return", "line": 204, "action": { "type": "invoke", "field": "get_u", "args": [ { "type": "i32", "value": "2" } ] }, "expected": [ { "type": "i32", "value": "255" } ] }, { "type": "assert_return", "line": 205, "action": { "type": "invoke", "field": "get_s", "args": [ { "type": "i32", "value": "2" } ] }, "expected": [ { "type": "i32", "value": "-1" } ] }, { "type": "assert_return", "line": 206, "action": { "type": "invoke", "field": "set_get", "args": [ { "type": "i32", "value": "1" }, { "type": "i32", "value": "7" } ] }, "expected": [ { "type": "i32", "value": "7" } ] }, { "type": "assert_return", "line": 207, "action": { "type": "invoke", "field": "len", "args": [] }, "expected": [ { "type": "i32", "value": "3" } ] }, { "type": "assert_trap", "line": 209, "action": { "type": "invoke", "field": "new-overflow", "args": [] }, "text": "out of bounds memory access" }, { "type": "assert_trap", "line": 210, "action": { "type": "invoke", "field": "get_u", "args": [ { "type": "i32", "value": "10" } ] }, "text": "out of bounds array access" }, { "type": "assert_trap", "line": 211, "action": { "type": "invoke", "field": "get_s", "args": [ { "type": "i32", "value": "10" } ] }, "text": "out of bounds array access" }, { "type": "assert_trap", "line": 212, "action": { "type": "invoke", "field": "set_get", "args": [ { "type": "i32", "value": "10" }, { "type": "i32", "value": "7" } ] }, "text": "out of bounds array access" }, { "type": "assert_return", "line": 214, "action": { "type": "invoke", "field": "drop_segs", "args": [] }, "expected": [] }, { "type": "assert_trap", "line": 216, "action": { "type": "invoke", "field": "new", "args": [] }, "text": "out of bounds memory access" }, { "type": "assert_trap", "line": 217, "action": { "type": "invoke", "field": "new-overflow", "args": [] }, "text": "out of bounds memory access" }, { "type": "module", "line": 219, "filename": "array.8.wasm", "module_type": "binary" }, { "type": "assert_return", "line": 276, "action": { "type": "invoke", "field": "new", "args": [] }, "expected": [ { "type": "arrayref" } ] }, { "type": "assert_return", "line": 277, "action": { "type": "invoke", "field": "new", "args": [] }, "expected": [ { "type": "eqref" } ] }, { "type": "assert_return", "line": 278, "action": { "type": "invoke", "field": "get", "args": [ { "type": "i32", "value": "0" }, { "type": "i32", "value": "0" } ] }, "expected": [ { "type": "i32", "value": "7" } ] }, { "type": "assert_return", "line": 279, "action": { "type": "invoke", "field": "get", "args": [ { "type": "i32", "value": "1" }, { "type": "i32", "value": "0" } ] }, "expected": [ { "type": "i32", "value": "1" } ] }, { "type": "assert_return", "line": 280, "action": { "type": "invoke", "field": "set_get", "args": [ { "type": "i32", "value": "0" }, { "type": "i32", "value": "1" }, { "type": "i32", "value": "1" } ] }, "expected": [ { "type": "i32", "value": "2" } ] }, { "type": "assert_return", "line": 281, "action": { "type": "invoke", "field": "len", "args": [] }, "expected": [ { "type": "i32", "value": "2" } ] }, { "type": "assert_trap", "line": 283, "action": { "type": "invoke", "field": "new-overflow", "args": [] }, "text": "out of bounds table access" }, { "type": "assert_trap", "line": 284, "action": { "type": "invoke", "field": "get", "args": [ { "type": "i32", "value": "10" }, { "type": "i32", "value": "0" } ] }, "text": "out of bounds array access" }, { "type": "assert_trap", "line": 285, "action": { "type": "invoke", "field": "set_get", "args": [ { "type": "i32", "value": "10" }, { "type": "i32", "value": "0" }, { "type": "i32", "value": "0" } ] }, "text": "out of bounds array access" }, { "type": "assert_return", "line": 287, "action": { "type": "invoke", "field": "drop_segs", "args": [] }, "expected": [] }, { "type": "assert_trap", "line": 289, "action": { "type": "invoke", "field": "new", "args": [] }, "text": "out of bounds table access" }, { "type": "assert_trap", "line": 290, "action": { "type": "invoke", "field": "new-overflow", "args": [] }, "text": "out of bounds table access" }, { "type": "assert_invalid", "line": 293, "filename": "array.9.wasm", "module_type": "binary", "text": "array is immutable" }, { "type": "assert_invalid", "line": 303, "filename": "array.10.wasm", "module_type": "binary", "text": "constant expression required" }, { "type": "assert_invalid", "line": 316, "filename": "array.11.wasm", "module_type": "binary", "text": "constant expression required" }, { "type": "module", "line": 332, "filename": "array.12.wasm", "module_type": "binary" }, { "type": "assert_trap", "line": 342, "action": { "type": "invoke", "field": "array.get-null", "args": [] }, "text": "null array reference" }, { "type": "assert_trap", "line": 343, "action": { "type": "invoke", "field": "array.set-null", "args": [] }, "text": "null array reference" } ] }