1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-07 13:22:56 +03:00

Merge pull request #819 from NodeRedis/815-tweaks

minor tweaks to how we spawn tests in #815
This commit is contained in:
Benjamin E. Coe
2015-09-11 21:40:48 -07:00
14 changed files with 180 additions and 98 deletions

View File

@@ -8,7 +8,7 @@ exports.name = "hiredis";
function HiredisReplyParser(options) {
this.name = exports.name;
this.options = options || {};
this.options = options;
this.reset();
events.EventEmitter.call(this);
}
@@ -27,12 +27,7 @@ HiredisReplyParser.prototype.execute = function (data) {
var reply;
this.reader.feed(data);
while (true) {
try {
reply = this.reader.get();
} catch (err) {
this.emit("error", err);
break;
}
reply = this.reader.get();
if (reply === undefined) {
break;

View File

@@ -12,7 +12,7 @@ exports.name = "javascript";
function ReplyParser(options) {
this.name = exports.name;
this.options = options || { };
this.options = options;
this._buffer = null;
this._offset = 0;