taylorhakes/promise-polyfill

SCRIPT438: Object doesn't support property or method '_setImmedateFn'

Closed this issue · 3 comments

I get this error in IE10

SCRIPT438: Object doesn't support property or method '_setImmedateFn'

code: (Browserify)

var Promise = require('promise-polyfill');
var setAsap = require('setasap');
Promise._setImmedateFn(setAsap);

Are you using Babel? Can you post the code after it goes through Browserify? Don't need the whole file, just the part that wraps this code. It may be transformed incorrectly.

Ok, figured it out. There is a typo in the readme. The function name is _setImmediateFn, not _setImmedateFn. I apologize for this error. I will push out a fix right now

Thanks!