(delays: string[], durations: string[])
| 459 | } |
| 460 | |
| 461 | function getTimeout(delays: string[], durations: string[]): number { |
| 462 | while (delays.length < durations.length) { |
| 463 | delays = delays.concat(delays) |
| 464 | } |
| 465 | return Math.max(...durations.map((d, i) => toMs(d) + toMs(delays[i]))) |
| 466 | } |
| 467 | |
| 468 | // Old versions of Chromium (below 61.0.3163.100) formats floating pointer |
| 469 | // numbers in a locale-dependent way, using a comma instead of a dot. |
no test coverage detected