From e0e320f058bbd4b88fc11382272b5e588609fba4 Mon Sep 17 00:00:00 2001 From: overlookmotel Date: Sat, 6 Jan 2018 14:46:14 +0000 Subject: [PATCH] Remove dead code in Queue.prototype.push --- src/queue.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/queue.js b/src/queue.js index 15163b6e9..c980292bc 100644 --- a/src/queue.js +++ b/src/queue.js @@ -38,7 +38,6 @@ Queue.prototype.push = function (fn, receiver, arg) { return; } var j = this._front + length - 3; - this._checkCapacity(length); var wrapMask = this._capacity - 1; this[(j + 0) & wrapMask] = fn; this[(j + 1) & wrapMask] = receiver;