Repository navigation
Commit 6a26b75
committed
fix(javascript): check an aliased parameter for closures in a loop
A parameter read as its argument skipped the list of names the loop
check walks, so a closure made in a loop could have read a later
iteration's value. It now joins that list like every other parameter.1 parent bef798c commit 6a26b75
2 files changed
Lines changed: 18 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33125 | 33125 | | |
33126 | 33126 | | |
33127 | 33127 | | |
33128 | | - | |
33129 | 33128 | | |
33130 | 33129 | | |
33131 | 33130 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8497 | 8497 | | |
8498 | 8498 | | |
8499 | 8499 | | |
| 8500 | + | |
| 8501 | + | |
| 8502 | + | |
| 8503 | + | |
| 8504 | + | |
| 8505 | + | |
| 8506 | + | |
| 8507 | + | |
| 8508 | + | |
| 8509 | + | |
| 8510 | + | |
| 8511 | + | |
| 8512 | + | |
| 8513 | + | |
| 8514 | + | |
| 8515 | + | |
| 8516 | + | |
| 8517 | + | |
8500 | 8518 | | |
8501 | 8519 | | |
8502 | 8520 | | |
| |||
0 commit comments