You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test_runner: MockTimers does not default interval delay or coerce string timeout delay #67576
The setInterval documentation gives delay a default of 1. An omitted delay should therefore behave like an explicit 1, keeping the interval active. For the timeout comparison, the real Timeout implementation coerces delay to a number; the mock should likewise schedule both 40 and "40" at the same time. No relative ordering of different callbacks is required by this reproduction.
The mock #createTimer implementation computes now + delay without defaulting or coercing it. For an omitted interval delay, interval is undefined, so the tick loop treats it as a one-shot timer. #55375 addresses oversized delays, not these cases.
AI tools assisted with analysis and preparation of this report and its reproduction. A human has reviewed and confirmed the issue and verified that it is reproducible.
Activity