| 1 |
{ |
| 2 |
"source_filename": "tests/cli/component-model-async/futures.wast", |
| 3 |
"commands": [ |
| 4 |
{ |
| 5 |
"type": "module", |
| 6 |
"line": 4, |
| 7 |
"filename": "futures.0.wasm", |
| 8 |
"module_type": "binary" |
| 9 |
}, |
| 10 |
{ |
| 11 |
"type": "assert_invalid", |
| 12 |
"line": 15, |
| 13 |
"filename": "futures.1.wasm", |
| 14 |
"module_type": "binary", |
| 15 |
"text": "type mismatch for export `future.new` of module instantiation argument ``" |
| 16 |
}, |
| 17 |
{ |
| 18 |
"type": "module", |
| 19 |
"line": 27, |
| 20 |
"filename": "futures.2.wasm", |
| 21 |
"module_type": "binary" |
| 22 |
}, |
| 23 |
{ |
| 24 |
"type": "module", |
| 25 |
"line": 39, |
| 26 |
"filename": "futures.3.wasm", |
| 27 |
"module_type": "binary" |
| 28 |
}, |
| 29 |
{ |
| 30 |
"type": "module", |
| 31 |
"line": 49, |
| 32 |
"filename": "futures.4.wasm", |
| 33 |
"module_type": "binary" |
| 34 |
}, |
| 35 |
{ |
| 36 |
"type": "assert_invalid", |
| 37 |
"line": 65, |
| 38 |
"filename": "futures.5.wasm", |
| 39 |
"module_type": "binary", |
| 40 |
"text": "type mismatch for export `future.read` of module instantiation argument ``" |
| 41 |
}, |
| 42 |
{ |
| 43 |
"type": "assert_invalid", |
| 44 |
"line": 80, |
| 45 |
"filename": "futures.6.wasm", |
| 46 |
"module_type": "binary", |
| 47 |
"text": "`future.read` requires a future type" |
| 48 |
}, |
| 49 |
{ |
| 50 |
"type": "assert_invalid", |
| 51 |
"line": 95, |
| 52 |
"filename": "futures.7.wasm", |
| 53 |
"module_type": "binary", |
| 54 |
"text": "canonical option `realloc` is required" |
| 55 |
}, |
| 56 |
{ |
| 57 |
"type": "module", |
| 58 |
"line": 109, |
| 59 |
"filename": "futures.8.wasm", |
| 60 |
"module_type": "binary" |
| 61 |
}, |
| 62 |
{ |
| 63 |
"type": "module", |
| 64 |
"line": 121, |
| 65 |
"filename": "futures.9.wasm", |
| 66 |
"module_type": "binary" |
| 67 |
}, |
| 68 |
{ |
| 69 |
"type": "assert_invalid", |
| 70 |
"line": 132, |
| 71 |
"filename": "futures.10.wasm", |
| 72 |
"module_type": "binary", |
| 73 |
"text": "type mismatch for export `future.write` of module instantiation argument ``" |
| 74 |
}, |
| 75 |
{ |
| 76 |
"type": "module", |
| 77 |
"line": 146, |
| 78 |
"filename": "futures.11.wasm", |
| 79 |
"module_type": "binary" |
| 80 |
}, |
| 81 |
{ |
| 82 |
"type": "assert_invalid", |
| 83 |
"line": 157, |
| 84 |
"filename": "futures.12.wasm", |
| 85 |
"module_type": "binary", |
| 86 |
"text": "type mismatch for export `future.cancel-read` of module instantiation argument ``" |
| 87 |
}, |
| 88 |
{ |
| 89 |
"type": "module", |
| 90 |
"line": 169, |
| 91 |
"filename": "futures.13.wasm", |
| 92 |
"module_type": "binary" |
| 93 |
}, |
| 94 |
{ |
| 95 |
"type": "assert_invalid", |
| 96 |
"line": 180, |
| 97 |
"filename": "futures.14.wasm", |
| 98 |
"module_type": "binary", |
| 99 |
"text": "type mismatch for export `future.cancel-write` of module instantiation argument ``" |
| 100 |
}, |
| 101 |
{ |
| 102 |
"type": "module", |
| 103 |
"line": 192, |
| 104 |
"filename": "futures.15.wasm", |
| 105 |
"module_type": "binary" |
| 106 |
}, |
| 107 |
{ |
| 108 |
"type": "assert_invalid", |
| 109 |
"line": 203, |
| 110 |
"filename": "futures.16.wasm", |
| 111 |
"module_type": "binary", |
| 112 |
"text": "type mismatch for export `future.drop-readable` of module instantiation argument ``" |
| 113 |
}, |
| 114 |
{ |
| 115 |
"type": "module", |
| 116 |
"line": 215, |
| 117 |
"filename": "futures.17.wasm", |
| 118 |
"module_type": "binary" |
| 119 |
}, |
| 120 |
{ |
| 121 |
"type": "assert_invalid", |
| 122 |
"line": 226, |
| 123 |
"filename": "futures.18.wasm", |
| 124 |
"module_type": "binary", |
| 125 |
"text": "type mismatch for export `future.drop-writable` of module instantiation argument ``" |
| 126 |
} |
| 127 |
] |
| 128 |
} |