Skip to content
This repository has been archived by the owner on Aug 28, 2019. It is now read-only.

Support on windows is broken #15

Open
tomgutz opened this issue Jun 18, 2013 · 0 comments
Open

Support on windows is broken #15

tomgutz opened this issue Jun 18, 2013 · 0 comments

Comments

@tomgutz
Copy link

tomgutz commented Jun 18, 2013

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)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant