{ "source_filename": "tests/testsuite/proposals/wasm-3.0/imports1.wast", "commands": [ { "type": "module", "line": 1, "filename": "imports1.0.wasm", "module_type": "binary" }, { "type": "assert_return", "line": 12, "action": { "type": "invoke", "field": "load", "args": [ { "type": "i32", "value": "0" } ] }, "expected": [ { "type": "i32", "value": "0" } ] }, { "type": "assert_return", "line": 13, "action": { "type": "invoke", "field": "load", "args": [ { "type": "i32", "value": "10" } ] }, "expected": [ { "type": "i32", "value": "16" } ] }, { "type": "assert_return", "line": 14, "action": { "type": "invoke", "field": "load", "args": [ { "type": "i32", "value": "8" } ] }, "expected": [ { "type": "i32", "value": "1048576" } ] }, { "type": "assert_trap", "line": 15, "action": { "type": "invoke", "field": "load", "args": [ { "type": "i32", "value": "1000000" } ] }, "text": "out of bounds memory access" } ] }