Repository navigation
Commit 848e2c5
committed
fix: keep a sibling declarator's dead-zone read out of a let merge
Hoisting a let-before-a-loop assignment into its declaration (added by
this branch) can fold a later declarator's read into an earlier one,
throwing where the un-hoisted statements ran fine. Reject a value that
reads any declarator at or after the one being filled, not just itself.
CodeRabbit found this reviewing the hoist commit.1 parent 8d56ddc commit 848e2c5
2 files changed
Lines changed: 19 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32000 | 32000 | | |
32001 | 32001 | | |
32002 | 32002 | | |
32003 | | - | |
32004 | | - | |
| 32003 | + | |
| 32004 | + | |
| 32005 | + | |
32005 | 32006 | | |
32006 | 32007 | | |
32007 | 32008 | | |
32008 | 32009 | | |
32009 | 32010 | | |
32010 | | - | |
| 32011 | + | |
| 32012 | + | |
| 32013 | + | |
| 32014 | + | |
| 32015 | + | |
32011 | 32016 | | |
32012 | 32017 | | |
32013 | 32018 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9772 | 9772 | | |
9773 | 9773 | | |
9774 | 9774 | | |
| 9775 | + | |
| 9776 | + | |
| 9777 | + | |
| 9778 | + | |
| 9779 | + | |
| 9780 | + | |
| 9781 | + | |
| 9782 | + | |
| 9783 | + | |
| 9784 | + | |
| 9785 | + | |
9775 | 9786 | | |
9776 | 9787 | | |
9777 | 9788 | | |
| |||
0 commit comments