Commit 3a1ecd8
authored
avoid sending redundant
Previously, we sent this event both immediately after lowering parameters and
when the async-with-callback-lifted export returned. The latter was redundant,
but it didn't matter in most cases because the second event usually overwrote
the first one such that it was only delivered once. However, in cases of three
or more components composed together, both events got delivered, and that made
`wit-bindgen` justifiably upset.
This removes the redundant event and adds a three component composition test to
cover the scenario.
Signed-off-by: Joel Dice <[email protected]>Status::Started for subtask (#11980)1 parent c8dce6f commit 3a1ecd8
File tree
3 files changed
+47
-23
lines changed- crates
- misc/component-async-tests/tests/scenario
- wasmtime/src/runtime/component
3 files changed
+47
-23
lines changedLines changed: 34 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
45 | 55 | | |
46 | 56 | | |
47 | 57 | | |
| |||
478 | 488 | | |
479 | 489 | | |
480 | 490 | | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
106 | 109 | | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
107 | 113 | | |
108 | 114 | | |
109 | 115 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
845 | 845 | | |
846 | 846 | | |
847 | 847 | | |
848 | | - | |
| 848 | + | |
849 | 849 | | |
850 | 850 | | |
851 | 851 | | |
| |||
1579 | 1579 | | |
1580 | 1580 | | |
1581 | 1581 | | |
1582 | | - | |
1583 | | - | |
1584 | | - | |
1585 | 1582 | | |
1586 | 1583 | | |
1587 | 1584 | | |
1588 | 1585 | | |
1589 | 1586 | | |
1590 | 1587 | | |
1591 | | - | |
1592 | 1588 | | |
1593 | 1589 | | |
1594 | 1590 | | |
1595 | 1591 | | |
1596 | 1592 | | |
1597 | 1593 | | |
1598 | | - | |
1599 | | - | |
1600 | | - | |
1601 | | - | |
1602 | | - | |
1603 | | - | |
1604 | | - | |
1605 | | - | |
1606 | | - | |
1607 | | - | |
1608 | | - | |
1609 | | - | |
1610 | 1594 | | |
1611 | 1595 | | |
1612 | 1596 | | |
| |||
1876 | 1860 | | |
1877 | 1861 | | |
1878 | 1862 | | |
1879 | | - | |
| 1863 | + | |
1880 | 1864 | | |
1881 | 1865 | | |
1882 | 1866 | | |
| |||
0 commit comments