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
We understand you have a problem and are in a hurry, but please provide us with some info to make it much more likely for your issue to be understood, worked on and resolved quickly.
FakeTimers version : appears to still exist at HEAD
Environment : any
Other libraries you are using: sinon
What did you expect to happen?
install() by default patches requestIdleCallback. But when the callback is called, it doesn't have IdleDeadline argument. It's described here. Thus a code that may use this argument will fail.
How to reproduce
Describe with code how to reproduce the faulty behaviour
or link to code on JSBin or similar
A sample code is:
requestIdleCallback(function(deadline) {
if (deadline.timeRemaining() > 0) {
...
}
})
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
What did you expect to happen?
install()
by default patchesrequestIdleCallback
. But when the callback is called, it doesn't haveIdleDeadline
argument. It's described here. Thus a code that may use this argument will fail.How to reproduce
A sample code is:
The text was updated successfully, but these errors were encountered: