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
That 'setImmediate' and 'clearImmediate' would be ignored if you pass them to config.toFake if _global.setImmediate does not exist since there is nothing to fake for them.
What actually happens
It works in node, but it does not work in Chrome (were setImmediate is not available). In that case it throws:
TypeError: Cannot set property 'hadOwnProperty' of undefined
at hijackMethod (.../lolex.js:529:1)
at Object.install (.../lolex.js:1265:1)
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?
That 'setImmediate' and 'clearImmediate' would be ignored if you pass them to config.toFake if
_global.setImmediate
does not exist since there is nothing to fake for them.What actually happens
It works in node, but it does not work in Chrome (were setImmediate is not available). In that case it throws:
How to reproduce
The text was updated successfully, but these errors were encountered: