| 1 |
{ |
| 2 |
"source_filename": "tests/cli/function-references/bad-call-ref-ty.wast", |
| 3 |
"commands": [ |
| 4 |
{ |
| 5 |
"type": "assert_invalid", |
| 6 |
"line": 4, |
| 7 |
"filename": "bad-call-ref-ty.0.wasm", |
| 8 |
"module_type": "binary", |
| 9 |
"text": "expected (ref null $type), found funcref" |
| 10 |
}, |
| 11 |
{ |
| 12 |
"type": "assert_invalid", |
| 13 |
"line": 13, |
| 14 |
"filename": "bad-call-ref-ty.1.wasm", |
| 15 |
"module_type": "binary", |
| 16 |
"text": "expected i32 but nothing on stack" |
| 17 |
}, |
| 18 |
{ |
| 19 |
"type": "assert_invalid", |
| 20 |
"line": 22, |
| 21 |
"filename": "bad-call-ref-ty.2.wasm", |
| 22 |
"module_type": "binary", |
| 23 |
"text": "type index out of bounds" |
| 24 |
}, |
| 25 |
{ |
| 26 |
"type": "assert_invalid", |
| 27 |
"line": 31, |
| 28 |
"filename": "bad-call-ref-ty.3.wasm", |
| 29 |
"module_type": "binary", |
| 30 |
"text": "type index out of bounds" |
| 31 |
} |
| 32 |
] |
| 33 |
} |