Repository navigation
Commit 9af25b4
committed
fix(compiler): visit finally with conservative join so catch-exit path does not inherit try-only abort proof
When catch always exits, the previous code narrowed the flow to the try
block's proof before visiting the finally block. Since finally runs on
every completion path (including the exiting catch), a state update in
finally was incorrectly treated as protected by the try block's abort
controllers.
Save the handler flow, restore the conservative join (intersection of
try and catch proofs) for the finally visit, then narrow for the next
statement afterward.1 parent a3055ae commit 9af25b4
2 files changed
Lines changed: 10 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4354 | 4354 | | |
4355 | 4355 | | |
4356 | 4356 | | |
| 4357 | + | |
| 4358 | + | |
| 4359 | + | |
| 4360 | + | |
| 4361 | + | |
4357 | 4362 | | |
4358 | 4363 | | |
4359 | 4364 | | |
4360 | 4365 | | |
4361 | | - | |
4362 | | - | |
4363 | | - | |
4364 | 4366 | | |
4365 | 4367 | | |
| 4368 | + | |
4366 | 4369 | | |
4367 | | - | |
4368 | 4370 | | |
4369 | 4371 | | |
4370 | 4372 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
228 | 228 | | |
229 | 229 | | |
230 | 230 | | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
231 | 235 | | |
232 | 236 | | |
233 | 237 | | |
| |||
0 commit comments