| 1 |
{ |
| 2 |
"source_filename": "tests/testsuite/comments.wast", |
| 3 |
"commands": [ |
| 4 |
{ |
| 5 |
"type": "module", |
| 6 |
"line": 10, |
| 7 |
"filename": "comments.0.wasm", |
| 8 |
"module_type": "binary" |
| 9 |
}, |
| 10 |
{ |
| 11 |
"type": "module", |
| 12 |
"line": 57, |
| 13 |
"filename": "comments.1.wasm", |
| 14 |
"module_type": "binary" |
| 15 |
}, |
| 16 |
{ |
| 17 |
"type": "module", |
| 18 |
"line": 67, |
| 19 |
"filename": "comments.2.wasm", |
| 20 |
"module_type": "binary" |
| 21 |
}, |
| 22 |
{ |
| 23 |
"type": "module", |
| 24 |
"line": 76, |
| 25 |
"filename": "comments.3.wasm", |
| 26 |
"module_type": "binary" |
| 27 |
}, |
| 28 |
{ |
| 29 |
"type": "module", |
| 30 |
"line": 83, |
| 31 |
"filename": "comments.4.wat", |
| 32 |
"module_type": "text", |
| 33 |
"binary_filename": "comments.4.wasm" |
| 34 |
}, |
| 35 |
{ |
| 36 |
"type": "assert_return", |
| 37 |
"line": 104, |
| 38 |
"action": { |
| 39 |
"type": "invoke", |
| 40 |
"field": "f1", |
| 41 |
"args": [] |
| 42 |
}, |
| 43 |
"expected": [ |
| 44 |
{ |
| 45 |
"type": "i32", |
| 46 |
"value": "2" |
| 47 |
} |
| 48 |
] |
| 49 |
}, |
| 50 |
{ |
| 51 |
"type": "assert_return", |
| 52 |
"line": 105, |
| 53 |
"action": { |
| 54 |
"type": "invoke", |
| 55 |
"field": "f2", |
| 56 |
"args": [] |
| 57 |
}, |
| 58 |
"expected": [ |
| 59 |
{ |
| 60 |
"type": "i32", |
| 61 |
"value": "2" |
| 62 |
} |
| 63 |
] |
| 64 |
}, |
| 65 |
{ |
| 66 |
"type": "assert_return", |
| 67 |
"line": 106, |
| 68 |
"action": { |
| 69 |
"type": "invoke", |
| 70 |
"field": "f3", |
| 71 |
"args": [] |
| 72 |
}, |
| 73 |
"expected": [ |
| 74 |
{ |
| 75 |
"type": "i32", |
| 76 |
"value": "2" |
| 77 |
} |
| 78 |
] |
| 79 |
} |
| 80 |
] |
| 81 |
} |