Repository navigation
Commit 04e563e
committed
fix(compiler): save and restore effect flow around exclusive branches
Abort-controller sources on flow.sources leaked from one IfStatement/
ConditionalExpression branch into the other and from one SwitchStatement
case into subsequent cases. An await that carried a signal in the
consequent could incorrectly satisfy protectedWrite for an unsignaled
request in the alternate or a later case.
Save and restore effectPolicy flow around each exclusive branch of
IfStatement/ConditionalExpression (matching the existing guard save/
restore) and around each non-fallthrough case of SwitchStatement.1 parent 924aff9 commit 04e563e
2 files changed
Lines changed: 48 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4148 | 4148 | | |
4149 | 4149 | | |
4150 | 4150 | | |
| 4151 | + | |
4151 | 4152 | | |
4152 | 4153 | | |
4153 | 4154 | | |
4154 | 4155 | | |
| 4156 | + | |
4155 | 4157 | | |
4156 | 4158 | | |
4157 | 4159 | | |
4158 | 4160 | | |
4159 | 4161 | | |
| 4162 | + | |
4160 | 4163 | | |
4161 | 4164 | | |
4162 | 4165 | | |
| |||
4305 | 4308 | | |
4306 | 4309 | | |
4307 | 4310 | | |
| 4311 | + | |
4308 | 4312 | | |
4309 | 4313 | | |
4310 | 4314 | | |
4311 | 4315 | | |
4312 | 4316 | | |
| 4317 | + | |
| 4318 | + | |
| 4319 | + | |
4313 | 4320 | | |
4314 | 4321 | | |
4315 | 4322 | | |
| |||
4326 | 4333 | | |
4327 | 4334 | | |
4328 | 4335 | | |
| 4336 | + | |
4329 | 4337 | | |
4330 | 4338 | | |
4331 | 4339 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
528 | 528 | | |
529 | 529 | | |
530 | 530 | | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
531 | 571 | | |
532 | 572 | | |
533 | 573 | | |
| |||
0 commit comments