[Pkg-javascript-commits] [node-async] 339/480: Fix setImmediate incompatibility with IE10 also when process and process.nextTick are defined

Jonas Smedegaard js at moszumanska.debian.org
Fri May 2 08:58:40 UTC 2014


This is an automated email from the git hooks/post-receive script.

js pushed a commit to branch master
in repository node-async.

commit be1f674bde583a37b61a8ab354cdf9fe418a34d1
Author: Louis Chatriot <louis.chatriot at gmail.com>
Date:   Tue Jul 16 10:23:34 2013 +0200

    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 cb6320d..1eebb15 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;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-async.git



More information about the Pkg-javascript-commits mailing list