| 1 |
{ |
| 2 |
"source_filename": "tests/cli/component-model/func.wast", |
| 3 |
"commands": [ |
| 4 |
{ |
| 5 |
"type": "module", |
| 6 |
"line": 3, |
| 7 |
"filename": "func.0.wasm", |
| 8 |
"module_type": "binary" |
| 9 |
}, |
| 10 |
{ |
| 11 |
"type": "module", |
| 12 |
"line": 9, |
| 13 |
"filename": "func.1.wasm", |
| 14 |
"module_type": "binary" |
| 15 |
}, |
| 16 |
{ |
| 17 |
"type": "assert_invalid", |
| 18 |
"line": 18, |
| 19 |
"filename": "func.2.wasm", |
| 20 |
"module_type": "binary", |
| 21 |
"text": "function parameter name `FOO` conflicts with previous parameter name `foo`" |
| 22 |
}, |
| 23 |
{ |
| 24 |
"type": "assert_invalid", |
| 25 |
"line": 25, |
| 26 |
"filename": "func.3.wasm", |
| 27 |
"module_type": "binary", |
| 28 |
"text": "canonical option `memory` is required" |
| 29 |
}, |
| 30 |
{ |
| 31 |
"type": "module", |
| 32 |
"line": 39, |
| 33 |
"filename": "func.4.wasm", |
| 34 |
"module_type": "binary" |
| 35 |
}, |
| 36 |
{ |
| 37 |
"type": "module", |
| 38 |
"line": 48, |
| 39 |
"filename": "func.5.wasm", |
| 40 |
"module_type": "binary" |
| 41 |
}, |
| 42 |
{ |
| 43 |
"type": "module", |
| 44 |
"line": 60, |
| 45 |
"filename": "func.6.wasm", |
| 46 |
"module_type": "binary" |
| 47 |
}, |
| 48 |
{ |
| 49 |
"type": "assert_invalid", |
| 50 |
"line": 77, |
| 51 |
"filename": "func.7.wasm", |
| 52 |
"module_type": "binary", |
| 53 |
"text": "canonical option `realloc` is required" |
| 54 |
}, |
| 55 |
{ |
| 56 |
"type": "assert_invalid", |
| 57 |
"line": 100, |
| 58 |
"filename": "func.8.wasm", |
| 59 |
"module_type": "binary", |
| 60 |
"text": "canonical option `realloc` is required" |
| 61 |
}, |
| 62 |
{ |
| 63 |
"type": "assert_invalid", |
| 64 |
"line": 112, |
| 65 |
"filename": "func.9.wasm", |
| 66 |
"module_type": "binary", |
| 67 |
"text": "canonical option `realloc` is required" |
| 68 |
}, |
| 69 |
{ |
| 70 |
"type": "assert_malformed", |
| 71 |
"line": 127, |
| 72 |
"filename": "func.10.wasm", |
| 73 |
"module_type": "binary", |
| 74 |
"text": "invalid leading byte (0x1) for number of results" |
| 75 |
}, |
| 76 |
{ |
| 77 |
"type": "assert_malformed", |
| 78 |
"line": 138, |
| 79 |
"filename": "func.11.wasm", |
| 80 |
"module_type": "binary", |
| 81 |
"text": "invalid leading byte (0x2) for component function results" |
| 82 |
} |
| 83 |
] |
| 84 |
} |