Commit d6d76d8
authored
fix(cli): clamp setTimeout to 1ms (#5309)
CLI's custom executor can starve the event loop when doing a
`setTimeout(fn, 0)` loop. This happens during tests like
`test/built-ins/Atomics/waitAsync/bigint/true-for-timeout.js`
Solution: clamp the delay to 1ms minimum (same as Node.js).
Fixes #53081 parent 352ec3d commit d6d76d8
1 file changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
204 | 204 | | |
205 | 205 | | |
206 | 206 | | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
207 | 213 | | |
208 | | - | |
| 214 | + | |
209 | 215 | | |
210 | 216 | | |
211 | 217 | | |
| |||
0 commit comments