From be1f674bde583a37b61a8ab354cdf9fe418a34d1 Mon Sep 17 00:00:00 2001 From: Louis Chatriot Date: Tue, 16 Jul 2013 10:23:34 +0200 Subject: [PATCH] Fix setImmediate incompatibility with IE10 also when process and process.nextTick are defined --- lib/async.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/async.js b/lib/async.js index cb6320d6a..1eebb153f 100755 --- a/lib/async.js +++ b/lib/async.js @@ -91,7 +91,10 @@ else { async.nextTick = process.nextTick; if (typeof setImmediate !== 'undefined') { - async.setImmediate = setImmediate; + async.setImmediate = function (fn) { + // not a direct alias for IE10 compatibility + setImmediate(fn); + }; } else { async.setImmediate = async.nextTick;