From 46cd9329b181ce71210621a93c32c00cbc1d2438 Mon Sep 17 00:00:00 2001 From: Kwangsu Kim Date: Wed, 26 Jun 2013 02:48:15 +0900 Subject: [PATCH] Fix TypeError when handling multi exception When errors occurs using multi/exec, avoid "TypeError: Cannot read property 'length' of undefined" --- index.js | 1 - 1 file changed, 1 deletion(-) diff --git a/index.js b/index.js index 6ec5ab3b7a..b9cc8eea02 100644 --- a/index.js +++ b/index.js @@ -1058,7 +1058,6 @@ Multi.prototype.exec = function (callback) { } else { errors.push(new Error(err)); } - self.queue.splice(index, 1); } }); }, this);