{ "source_filename": "tests/testsuite/proposals/wasm-3.0/array_new_data.wast", "commands": [ { "type": "module", "line": 1, "filename": "array_new_data.0.wasm", "module_type": "binary" }, { "type": "assert_return", "line": 12, "action": { "type": "invoke", "field": "array-new-data", "args": [ { "type": "i32", "value": "0" }, { "type": "i32", "value": "0" } ] }, "expected": [ { "type": "arrayref" } ] }, { "type": "assert_return", "line": 13, "action": { "type": "invoke", "field": "array-new-data", "args": [ { "type": "i32", "value": "0" }, { "type": "i32", "value": "4" } ] }, "expected": [ { "type": "arrayref" } ] }, { "type": "assert_return", "line": 14, "action": { "type": "invoke", "field": "array-new-data", "args": [ { "type": "i32", "value": "1" }, { "type": "i32", "value": "2" } ] }, "expected": [ { "type": "arrayref" } ] }, { "type": "assert_return", "line": 15, "action": { "type": "invoke", "field": "array-new-data", "args": [ { "type": "i32", "value": "4" }, { "type": "i32", "value": "0" } ] }, "expected": [ { "type": "arrayref" } ] }, { "type": "assert_trap", "line": 18, "action": { "type": "invoke", "field": "array-new-data", "args": [ { "type": "i32", "value": "0" }, { "type": "i32", "value": "5" } ] }, "text": "out of bounds memory access" }, { "type": "assert_trap", "line": 19, "action": { "type": "invoke", "field": "array-new-data", "args": [ { "type": "i32", "value": "5" }, { "type": "i32", "value": "0" } ] }, "text": "out of bounds memory access" }, { "type": "assert_trap", "line": 20, "action": { "type": "invoke", "field": "array-new-data", "args": [ { "type": "i32", "value": "1" }, { "type": "i32", "value": "4" } ] }, "text": "out of bounds memory access" }, { "type": "assert_trap", "line": 21, "action": { "type": "invoke", "field": "array-new-data", "args": [ { "type": "i32", "value": "4" }, { "type": "i32", "value": "1" } ] }, "text": "out of bounds memory access" }, { "type": "module", "line": 23, "filename": "array_new_data.1.wasm", "module_type": "binary" }, { "type": "assert_trap", "line": 74, "action": { "type": "invoke", "field": "f0", "args": [] }, "text": "out of bounds memory access" }, { "type": "assert_trap", "line": 75, "action": { "type": "invoke", "field": "f1", "args": [] }, "text": "out of bounds memory access" }, { "type": "assert_trap", "line": 76, "action": { "type": "invoke", "field": "f2", "args": [] }, "text": "out of bounds memory access" }, { "type": "assert_trap", "line": 77, "action": { "type": "invoke", "field": "f3", "args": [] }, "text": "out of bounds memory access" }, { "type": "assert_return", "line": 78, "action": { "type": "invoke", "field": "f4", "args": [] }, "expected": [] }, { "type": "assert_trap", "line": 79, "action": { "type": "invoke", "field": "f9", "args": [] }, "text": "out of bounds memory access" }, { "type": "assert_trap", "line": 81, "action": { "type": "invoke", "field": "g0", "args": [] }, "text": "out of bounds memory access" }, { "type": "assert_trap", "line": 82, "action": { "type": "invoke", "field": "g1", "args": [] }, "text": "out of bounds memory access" }, { "type": "assert_trap", "line": 83, "action": { "type": "invoke", "field": "g4", "args": [] }, "text": "out of bounds memory access" }, { "type": "assert_trap", "line": 84, "action": { "type": "invoke", "field": "g7", "args": [] }, "text": "out of bounds memory access" }, { "type": "assert_return", "line": 85, "action": { "type": "invoke", "field": "g8", "args": [] }, "expected": [] }, { "type": "assert_trap", "line": 86, "action": { "type": "invoke", "field": "g9", "args": [] }, "text": "out of bounds memory access" }, { "type": "module", "line": 89, "filename": "array_new_data.2.wasm", "module_type": "binary" }, { "type": "assert_return", "line": 103, "action": { "type": "invoke", "field": "array-new-data-contents", "args": [] }, "expected": [ { "type": "i32", "value": "187" }, { "type": "i32", "value": "204" } ] }, { "type": "module", "line": 105, "filename": "array_new_data.3.wasm", "module_type": "binary" }, { "type": "assert_return", "line": 118, "action": { "type": "invoke", "field": "array-new-data-little-endian", "args": [] }, "expected": [ { "type": "i32", "value": "-573785174" } ] }, { "type": "module", "line": 120, "filename": "array_new_data.4.wasm", "module_type": "binary" }, { "type": "assert_return", "line": 133, "action": { "type": "invoke", "field": "array-new-data-unaligned", "args": [] }, "expected": [ { "type": "i32", "value": "8721" } ] } ] }