[Pkg-javascript-commits] [node-async] 384/480: Fix for cargo on IE8
Jonas Smedegaard
js at moszumanska.debian.org
Fri May 2 08:58:44 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 08e48cfdfcc2d654199a9eb9092c46d962801771
Author: Christopher Currie <christophercurrie at users.noreply.github.com>
Date: Thu Mar 27 12:09:56 2014 -0700
Fix for cargo on IE8
IE8 is strict about having a second argument to Array.splice; without the second argument, it silently fails, causing the worker to not get any work, and the cargo to spin infinitely.
---
lib/async.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/async.js b/lib/async.js
index 1eebb15..406f66e 100755
--- a/lib/async.js
+++ b/lib/async.js
@@ -775,7 +775,7 @@
var ts = typeof payload === 'number'
? tasks.splice(0, payload)
- : tasks.splice(0);
+ : tasks.splice(0, tasks.length);
var ds = _map(ts, function (task) {
return task.data;
--
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