Repository navigation
Commit 591f7b8
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 d9e3ff5 commit 591f7b8
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 | |
|---|---|---|---|
| |||
9777 | 9777 | | |
9778 | 9778 | | |
9779 | 9779 | | |
| 9780 | + | |
| 9781 | + | |
| 9782 | + | |
| 9783 | + | |
| 9784 | + | |
| 9785 | + | |
| 9786 | + | |
| 9787 | + | |
| 9788 | + | |
| 9789 | + | |
| 9790 | + | |
9780 | 9791 | | |
9781 | 9792 | | |
9782 | 9793 | | |
| |||
0 commit comments