| 1 |
{ |
| 2 |
"source_filename": "tests/cli/component-model-async/task-builtins.wast", |
| 3 |
"commands": [ |
| 4 |
{ |
| 5 |
"type": "module", |
| 6 |
"line": 4, |
| 7 |
"filename": "task-builtins.0.wasm", |
| 8 |
"module_type": "binary" |
| 9 |
}, |
| 10 |
{ |
| 11 |
"type": "assert_invalid", |
| 12 |
"line": 14, |
| 13 |
"filename": "task-builtins.1.wasm", |
| 14 |
"module_type": "binary", |
| 15 |
"text": "type mismatch for export `backpressure.set` of module instantiation argument ``" |
| 16 |
}, |
| 17 |
{ |
| 18 |
"type": "module", |
| 19 |
"line": 25, |
| 20 |
"filename": "task-builtins.2.wasm", |
| 21 |
"module_type": "binary" |
| 22 |
}, |
| 23 |
{ |
| 24 |
"type": "assert_invalid", |
| 25 |
"line": 35, |
| 26 |
"filename": "task-builtins.3.wasm", |
| 27 |
"module_type": "binary", |
| 28 |
"text": "type mismatch for export `backpressure.inc` of module instantiation argument ``" |
| 29 |
}, |
| 30 |
{ |
| 31 |
"type": "module", |
| 32 |
"line": 46, |
| 33 |
"filename": "task-builtins.4.wasm", |
| 34 |
"module_type": "binary" |
| 35 |
}, |
| 36 |
{ |
| 37 |
"type": "assert_invalid", |
| 38 |
"line": 56, |
| 39 |
"filename": "task-builtins.5.wasm", |
| 40 |
"module_type": "binary", |
| 41 |
"text": "type mismatch for export `backpressure.dec` of module instantiation argument ``" |
| 42 |
}, |
| 43 |
{ |
| 44 |
"type": "module", |
| 45 |
"line": 67, |
| 46 |
"filename": "task-builtins.6.wasm", |
| 47 |
"module_type": "binary" |
| 48 |
}, |
| 49 |
{ |
| 50 |
"type": "assert_invalid", |
| 51 |
"line": 76, |
| 52 |
"filename": "task-builtins.7.wasm", |
| 53 |
"module_type": "binary", |
| 54 |
"text": "cannot specify `async` option on `task.return`" |
| 55 |
}, |
| 56 |
{ |
| 57 |
"type": "assert_invalid", |
| 58 |
"line": 80, |
| 59 |
"filename": "task-builtins.8.wasm", |
| 60 |
"module_type": "binary", |
| 61 |
"text": "cannot specify callback without async" |
| 62 |
}, |
| 63 |
{ |
| 64 |
"type": "assert_invalid", |
| 65 |
"line": 87, |
| 66 |
"filename": "task-builtins.9.wasm", |
| 67 |
"module_type": "binary", |
| 68 |
"text": "cannot specify `post-return` option on `task.return`" |
| 69 |
}, |
| 70 |
{ |
| 71 |
"type": "assert_invalid", |
| 72 |
"line": 94, |
| 73 |
"filename": "task-builtins.10.wasm", |
| 74 |
"module_type": "binary", |
| 75 |
"text": "cannot specify `realloc` option on `task.return`" |
| 76 |
}, |
| 77 |
{ |
| 78 |
"type": "module", |
| 79 |
"line": 103, |
| 80 |
"filename": "task-builtins.11.wasm", |
| 81 |
"module_type": "binary" |
| 82 |
}, |
| 83 |
{ |
| 84 |
"type": "module", |
| 85 |
"line": 115, |
| 86 |
"filename": "task-builtins.12.wasm", |
| 87 |
"module_type": "binary" |
| 88 |
}, |
| 89 |
{ |
| 90 |
"type": "module", |
| 91 |
"line": 124, |
| 92 |
"filename": "task-builtins.13.wasm", |
| 93 |
"module_type": "binary" |
| 94 |
}, |
| 95 |
{ |
| 96 |
"type": "assert_invalid", |
| 97 |
"line": 132, |
| 98 |
"filename": "task-builtins.14.wasm", |
| 99 |
"module_type": "binary", |
| 100 |
"text": "type mismatch for export `waitable-set.new` of module instantiation argument ``" |
| 101 |
}, |
| 102 |
{ |
| 103 |
"type": "module", |
| 104 |
"line": 141, |
| 105 |
"filename": "task-builtins.15.wasm", |
| 106 |
"module_type": "binary" |
| 107 |
}, |
| 108 |
{ |
| 109 |
"type": "assert_invalid", |
| 110 |
"line": 153, |
| 111 |
"filename": "task-builtins.16.wasm", |
| 112 |
"module_type": "binary", |
| 113 |
"text": "type mismatch for export `waitable-set.wait` of module instantiation argument ``" |
| 114 |
}, |
| 115 |
{ |
| 116 |
"type": "module", |
| 117 |
"line": 166, |
| 118 |
"filename": "task-builtins.17.wasm", |
| 119 |
"module_type": "binary" |
| 120 |
}, |
| 121 |
{ |
| 122 |
"type": "assert_invalid", |
| 123 |
"line": 178, |
| 124 |
"filename": "task-builtins.18.wasm", |
| 125 |
"module_type": "binary", |
| 126 |
"text": "type mismatch for export `waitable-set.poll` of module instantiation argument ``" |
| 127 |
}, |
| 128 |
{ |
| 129 |
"type": "module", |
| 130 |
"line": 191, |
| 131 |
"filename": "task-builtins.19.wasm", |
| 132 |
"module_type": "binary" |
| 133 |
}, |
| 134 |
{ |
| 135 |
"type": "assert_invalid", |
| 136 |
"line": 199, |
| 137 |
"filename": "task-builtins.20.wasm", |
| 138 |
"module_type": "binary", |
| 139 |
"text": "type mismatch for export `waitable-set.drop` of module instantiation argument ``" |
| 140 |
}, |
| 141 |
{ |
| 142 |
"type": "module", |
| 143 |
"line": 208, |
| 144 |
"filename": "task-builtins.21.wasm", |
| 145 |
"module_type": "binary" |
| 146 |
}, |
| 147 |
{ |
| 148 |
"type": "assert_invalid", |
| 149 |
"line": 216, |
| 150 |
"filename": "task-builtins.22.wasm", |
| 151 |
"module_type": "binary", |
| 152 |
"text": "type mismatch for export `waitable.join` of module instantiation argument ``" |
| 153 |
}, |
| 154 |
{ |
| 155 |
"type": "module", |
| 156 |
"line": 225, |
| 157 |
"filename": "task-builtins.23.wasm", |
| 158 |
"module_type": "binary" |
| 159 |
}, |
| 160 |
{ |
| 161 |
"type": "assert_invalid", |
| 162 |
"line": 235, |
| 163 |
"filename": "task-builtins.24.wasm", |
| 164 |
"module_type": "binary", |
| 165 |
"text": "type mismatch for export `thread.yield` of module instantiation argument ``" |
| 166 |
}, |
| 167 |
{ |
| 168 |
"type": "module", |
| 169 |
"line": 246, |
| 170 |
"filename": "task-builtins.25.wasm", |
| 171 |
"module_type": "binary" |
| 172 |
}, |
| 173 |
{ |
| 174 |
"type": "assert_invalid", |
| 175 |
"line": 256, |
| 176 |
"filename": "task-builtins.26.wasm", |
| 177 |
"module_type": "binary", |
| 178 |
"text": "type mismatch for export `subtask.drop` of module instantiation argument ``" |
| 179 |
}, |
| 180 |
{ |
| 181 |
"type": "module", |
| 182 |
"line": 267, |
| 183 |
"filename": "task-builtins.27.wasm", |
| 184 |
"module_type": "binary" |
| 185 |
}, |
| 186 |
{ |
| 187 |
"type": "assert_invalid", |
| 188 |
"line": 277, |
| 189 |
"filename": "task-builtins.28.wasm", |
| 190 |
"module_type": "binary", |
| 191 |
"text": "type mismatch for export `subtask.cancel` of module instantiation argument ``" |
| 192 |
}, |
| 193 |
{ |
| 194 |
"type": "module", |
| 195 |
"line": 288, |
| 196 |
"filename": "task-builtins.29.wasm", |
| 197 |
"module_type": "binary" |
| 198 |
}, |
| 199 |
{ |
| 200 |
"type": "assert_invalid", |
| 201 |
"line": 305, |
| 202 |
"filename": "task-builtins.30.wasm", |
| 203 |
"module_type": "binary", |
| 204 |
"text": "found: (func (result i32))" |
| 205 |
}, |
| 206 |
{ |
| 207 |
"type": "assert_invalid", |
| 208 |
"line": 312, |
| 209 |
"filename": "task-builtins.31.wasm", |
| 210 |
"module_type": "binary", |
| 211 |
"text": "found: (func (param i32))" |
| 212 |
}, |
| 213 |
{ |
| 214 |
"type": "assert_invalid", |
| 215 |
"line": 319, |
| 216 |
"filename": "task-builtins.32.wasm", |
| 217 |
"module_type": "binary", |
| 218 |
"text": "immediate must be zero: 1" |
| 219 |
}, |
| 220 |
{ |
| 221 |
"type": "assert_invalid", |
| 222 |
"line": 323, |
| 223 |
"filename": "task-builtins.33.wasm", |
| 224 |
"module_type": "binary", |
| 225 |
"text": "immediate must be zero: 1" |
| 226 |
}, |
| 227 |
{ |
| 228 |
"type": "assert_invalid", |
| 229 |
"line": 327, |
| 230 |
"filename": "task-builtins.34.wasm", |
| 231 |
"module_type": "binary", |
| 232 |
"text": "immediate must be zero: 100" |
| 233 |
}, |
| 234 |
{ |
| 235 |
"type": "assert_invalid", |
| 236 |
"line": 331, |
| 237 |
"filename": "task-builtins.35.wasm", |
| 238 |
"module_type": "binary", |
| 239 |
"text": "immediate must be zero: 100" |
| 240 |
}, |
| 241 |
{ |
| 242 |
"type": "assert_malformed", |
| 243 |
"line": 335, |
| 244 |
"filename": "task-builtins.36.wat", |
| 245 |
"module_type": "text", |
| 246 |
"text": "expected keyword `i32`" |
| 247 |
}, |
| 248 |
{ |
| 249 |
"type": "assert_malformed", |
| 250 |
"line": 339, |
| 251 |
"filename": "task-builtins.37.wat", |
| 252 |
"module_type": "text", |
| 253 |
"text": "expected keyword `i32`" |
| 254 |
}, |
| 255 |
{ |
| 256 |
"type": "assert_malformed", |
| 257 |
"line": 344, |
| 258 |
"filename": "task-builtins.38.wasm", |
| 259 |
"module_type": "binary", |
| 260 |
"text": "invalid leading byte (0x7e) for context.get" |
| 261 |
}, |
| 262 |
{ |
| 263 |
"type": "assert_malformed", |
| 264 |
"line": 351, |
| 265 |
"filename": "task-builtins.39.wasm", |
| 266 |
"module_type": "binary", |
| 267 |
"text": "invalid leading byte (0x7e) for context.set" |
| 268 |
}, |
| 269 |
{ |
| 270 |
"type": "module", |
| 271 |
"line": 360, |
| 272 |
"filename": "task-builtins.40.wasm", |
| 273 |
"module_type": "binary" |
| 274 |
}, |
| 275 |
{ |
| 276 |
"type": "module", |
| 277 |
"line": 433, |
| 278 |
"filename": "task-builtins.41.wasm", |
| 279 |
"module_type": "binary" |
| 280 |
} |
| 281 |
] |
| 282 |
} |