-
Notifications
You must be signed in to change notification settings - Fork 7
Support on windows is broken #15
Description
Same test as of issue #2
Below is the logs:
C:\tools\zkjs>node test
connecting [ 'localhost', '2181' ]
connected localhost:2181
C:\tools\zkjs\node_modules\readable-stream\lib_stream_readable.js:816
ret = Buffer.concat(list, length);
^
TypeError: Object function Buffer(subject, encoding, offset) {
if (!(this instanceof Buffer)) {
return new Buffer(subject, encoding, offset);
}
var type;
// Are we slicing?
if (typeof offset === 'number') {
this.length = coerce(encoding);
this.parent = subject;
this.offset = offset;
} else {
// Find the length
switch (type = typeof subject) {
case 'number':
this.length = coerce(subject);
break;
case 'string':
this.length = Buffer.byteLength(subject, encoding);
break;
case 'object': // Assume object is an array
this.length = coerce(subject.length);
break;
default:
throw new Error('First argument needs to be a number, ' +
'array or string.');
}
if (this.length > Buffer.poolSize) {
// Big buffer, just alloc one.
this.parent = new SlowBuffer(this.length);
this.offset = 0;
} else {
// Small buffer.
if (!pool || pool.length - pool.used < this.length) allocPool();
this.parent = pool;
this.offset = pool.used;
pool.used += this.length;
}
// Treat array-ish objects as a byte array.
if (isArrayIsh(subject)) {
for (var i = 0; i < this.length; i++) {
this.parent[i + this.offset] = subject[i];
}
} else if (type == 'string') {
// We are a string
this.length = this.write(subject, 0, encoding);
}
}
SlowBuffer.makeFastBuffer(this.parent, this, this.offset, this.length);
} has no method 'concat'
at fromList (C:\tools\zkjs\node_modules\readable-stream\lib_stream_readable.js:816:20)
at Readable.read (C:\tools\zkjs\node_modules\readable-stream\lib_stream_readable.js:308:11)
at Body.read (C:\tools\zkjs\state.js:23:21)
at Receiver.read (C:\tools\zkjs\receiver.js:64:21)
at Receiver.streamReadable (C:\tools\zkjs\receiver.js:112:8)
at Readable.emit (events.js:64:17)
at emitReadable_ (C:\tools\zkjs\node_modules\readable-stream\lib_stream_readable.js:385:10)
at emitReadable (C:\tools\zkjs\node_modules\readable-stream\lib_stream_readable.js:380:5)
at readableAddChunk (C:\tools\zkjs\node_modules\readable-stream\lib_stream_readable.js:145:7)
at Readable.push (C:\tools\zkjs\node_modules\readable-stream\lib_stream_readable.js:115:10)