Skip to content

Commit

Permalink
Merge pull request taylorhakes#36 from Wain-PC/master
Browse files Browse the repository at this point in the history
Fixed IE error "Invalid calling object" in test suite
  • Loading branch information
taylorhakes authored Sep 1, 2016
2 parents 1a78791 + 54b8d1e commit 3591c45
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/promise.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ describe("Promises/A+ Tests", function () {
describe('Promise', function () {
describe('Promise._setImmediateFn', function () {
afterEach(function() {
Promise._setImmediateFn((typeof setImmediate === 'function' && setImmediate) ||
Promise._setImmediateFn((typeof setImmediate === 'function' && function (fn) {
setImmediate(fn);
}) ||
function (fn) {
setTimeout(fn, 1);
});
Expand Down

0 comments on commit 3591c45

Please sign in to comment.