Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

decoder: swap the readable and writable state options

I had that backwards mentally
  • Loading branch information...
commit 2351fab418de36a3e3efe7e2be76c8eb88a28424 1 parent 4935889
Nathan Rajlich authored
Showing with 4 additions and 3 deletions.
  1. +4 −3 lib/decoder.js
7 lib/decoder.js
View
@@ -31,9 +31,10 @@ function Decoder (opts) {
// XXX: nasty hack since we can't set only the Readable props through the
// Transform constructor.
- this._readableState.objectMode = true;
- this._readableState.lowWaterMark = 0;
- this._readableState.highWaterMark = 0;
+ // the writable side (the input end) should accept regular Objects
+ this._writableState.objectMode = true;
+ this._writableState.lowWaterMark = 0;
+ this._writableState.highWaterMark = 0;
// headerin() needs to be called 3 times
this._headerCount = 3;
Please sign in to comment.
Something went wrong with that request. Please try again.