Commit eb3f84b
committed
Avoid closure
Fixes
````
SyntaxError: ~/react/packages/react-reconciler/src/ReactFiberLane.js: Compiling let/const in this block would add a closure (throwIfClosureRequired).
614 | if (updateLane !== IdleLane) {
615 | if (enableUpdaterTracking) {
> 616 | if (isDevToolsPresent) {
| ^
617 | // transfer pending updaters from pingedLanes to updateLane
618 | const pendingUpdatersLaneMap = root.pendingUpdatersLaneMap;
619 | const updaters = pendingUpdatersLaneMap[laneToIndex(updateLane)];
```1 parent 2abf6dc commit eb3f84b
1 file changed
Lines changed: 30 additions & 20 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
625 | 625 | | |
626 | 626 | | |
627 | 627 | | |
628 | | - | |
629 | | - | |
630 | | - | |
631 | | - | |
632 | | - | |
633 | | - | |
634 | | - | |
635 | | - | |
636 | | - | |
637 | | - | |
638 | | - | |
639 | | - | |
640 | | - | |
641 | | - | |
642 | | - | |
643 | | - | |
644 | | - | |
645 | | - | |
646 | | - | |
647 | | - | |
| 628 | + | |
648 | 629 | | |
649 | 630 | | |
650 | 631 | | |
| |||
927 | 908 | | |
928 | 909 | | |
929 | 910 | | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
| 923 | + | |
| 924 | + | |
| 925 | + | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
| 932 | + | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
930 | 940 | | |
931 | 941 | | |
932 | 942 | | |
| |||
0 commit comments