-
Notifications
You must be signed in to change notification settings - Fork 313
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
setImmediate is broken in IE10 / IE11. #252
Comments
ptolomeus
added a commit
to ptolomeus/fbjs
that referenced
this issue
May 20, 2020
Fix exported `setImmediate` polyfill, which was broken especially in IE11 (and maybe also earlier), which has actually supports it natively.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Calls to setImmediate won't working in IE10 or IE11.
Known bug since 2014, YuzuJS/setImmediate#35
Basically those versions of IE don't allow you to make a naked call to
setImmediate
, it must be called aswindow.setImmediate
. However the setImmediate package doesn't install if there's a global setImmediate.https://github.com/YuzuJS/setImmediate/blob/master/setImmediate.js#L4-L6
Workaround is found here, reflux/refluxjs#374
Briefly just set
var setImmediate = window.setImmediate.bind(window);
if there's a global.setImmediate.I know it's really a bug in a separate package, but it's been open since 2014. I'm hoping you have higher standards and will implement the workaround :)
The text was updated successfully, but these errors were encountered: