yandex / mapsapi-modules

Async modular system
132 stars 29 forks source link

setImmediate & postMessage are potentially broken in IE10 #18

Open deepsweet opened 10 years ago

deepsweet commented 10 years ago

http://codeforhire.com/2013/09/21/setimmediate-and-messagechannel-broken-on-internet-explorer-10/

and looks like we have a potentially buggy nextTick wrapper.

deepsweet commented 10 years ago

hardcore

dfilatov commented 10 years ago

This bug is existed only in IE10 or other versions of IE too?

deepsweet commented 10 years ago

I don't know and have no such browsers for a tests at this moment... afaik: setImmediate exists in IE10+ postMessage exists in IE8+ (btw, actually IE8-9 gets in here, not here)

dfilatov commented 10 years ago

IE8 uses readyStateChange, because it contains synchronous version of postMessage, see https://github.com/ymaps/modules/blob/master/modules.js#L345