Commit 4d171d0
authored
Fix some minor mistakes/typos in
* Fix some minor mistakes/typos in `guest_write`
This commit fixes a mistake where if a synchronous call to
`future.write` was blocked, then it woke up because the readable end was
dropped, the future would then erroneously not be marked "done" which
could allow future operations to proceed. The fix here is to adjust a
`matches!` to handle both futures and streams.
An associated `*.wast` test is expanded to mix in synchronous calls as
well as asynchronous calls in various places. The test is refactored a
bit to have various helpers in various places.
Finally some minor updates to error messages are made which avoids
saying "stream" when the error shows up for both futures and streams.
* Fix testsguest_write (#13210)1 parent 9dc41f7 commit 4d171d0
4 files changed
Lines changed: 311 additions & 125 deletions
File tree
- crates
- wasmtime/src/runtime/component/concurrent
- wast/src
- tests/misc_testsuite/component-model/async
Lines changed: 3 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3512 | 3512 | | |
3513 | 3513 | | |
3514 | 3514 | | |
3515 | | - | |
| 3515 | + | |
3516 | 3516 | | |
3517 | 3517 | | |
3518 | 3518 | | |
| |||
3724 | 3724 | | |
3725 | 3725 | | |
3726 | 3726 | | |
3727 | | - | |
3728 | | - | |
3729 | | - | |
3730 | | - | |
| 3727 | + | |
3731 | 3728 | | |
3732 | 3729 | | |
3733 | 3730 | | |
| |||
3767 | 3764 | | |
3768 | 3765 | | |
3769 | 3766 | | |
3770 | | - | |
| 3767 | + | |
3771 | 3768 | | |
3772 | 3769 | | |
3773 | 3770 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
538 | 538 | | |
539 | 539 | | |
540 | 540 | | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
541 | 545 | | |
542 | 546 | | |
543 | 547 | | |
| |||
Lines changed: 9 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
229 | 229 | | |
230 | 230 | | |
231 | 231 | | |
232 | | - | |
| 232 | + | |
233 | 233 | | |
234 | | - | |
| 234 | + | |
235 | 235 | | |
236 | | - | |
| 236 | + | |
237 | 237 | | |
238 | 238 | | |
239 | | - | |
| 239 | + | |
240 | 240 | | |
241 | | - | |
| 241 | + | |
242 | 242 | | |
243 | | - | |
| 243 | + | |
244 | 244 | | |
245 | 245 | | |
246 | 246 | | |
247 | | - | |
| 247 | + | |
248 | 248 | | |
249 | | - | |
| 249 | + | |
250 | 250 | | |
251 | | - | |
| 251 | + | |
0 commit comments