[Pkg-javascript-commits] [node-async] 323/480: fix for node 0.8.x

Jonas Smedegaard js at moszumanska.debian.org
Fri May 2 08:58:38 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 b00f5f4bea56d0a72c176028ace47213483e0313
Author: Caolan McMahon <caolan at caolanmcmahon.com>
Date:   Tue Apr 9 21:47:15 2013 +0100

    fix for node 0.8.x
---
 lib/async.js | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/lib/async.js b/lib/async.js
index 14d20cc..16e88c6 100755
--- a/lib/async.js
+++ b/lib/async.js
@@ -87,7 +87,12 @@
     }
     else {
         async.nextTick = process.nextTick;
-        async.setImmediate = setImmediate;
+        if (typeof setImmediate !== 'undefined') {
+            async.setImmediate = setImmediate;
+        }
+        else {
+            async.setImmediate = async.nextTick;
+        }
     }
 
     async.each = function (arr, iterator, callback) {

-- 
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