1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-06 02:15:48 +03:00

making an attempt to improve the test suite

This commit is contained in:
Benjamin Coe
2015-07-11 16:14:42 -07:00
parent b92a62d643
commit d30e80abbe
8 changed files with 92 additions and 35 deletions

View File

@@ -46,7 +46,7 @@ Queue.prototype.forEach = function (fn, thisv) {
Queue.prototype.getLength = function () {
return this.head.length - this.offset + this.tail.length;
};
Object.defineProperty(Queue.prototype, "length", {
get: function () {
return this.getLength();