Skip to content
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

Open
wmill opened this issue Jul 13, 2017 · 0 comments
Open

setImmediate is broken in IE10 / IE11. #252

wmill opened this issue Jul 13, 2017 · 0 comments

Comments

@wmill
Copy link

wmill commented Jul 13, 2017

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 as window.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 :)

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant