Commit a50df99
committed
test(sandbox): use lastIndexOf to clean up watch flags
Address review feedback on #4104: when the test runner itself is started
with `node --watch`, the existing indexOf() cleanup would strip the
runner's flag. Since each watchFlag is appended via push(), lastIndexOf()
reliably targets our own entry without disturbing pre-existing values.1 parent c7b698a commit a50df99
1 file changed
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
145 | | - | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
146 | 149 | | |
147 | | - | |
| 150 | + | |
148 | 151 | | |
149 | 152 | | |
150 | 153 | | |
| |||
0 commit comments