Skip to content

Commit

Permalink
_debug_agent: use readableObjectMode option
Browse files Browse the repository at this point in the history
Use public `readableObjectMode` option to construct `Transform`
instead of accessing private `_readableState.objectMode`.

Partially addresses #445.

PR-URL: #270
Reviewed-By: Fedor Indutny <[email protected]>
Reviewed-By: Ben Noordhuis <[email protected]>
Reviewed-By: Bert Belder <[email protected]>
Reviewed-By: Chris Dickinson <[email protected]>
  • Loading branch information
vkurchatkin authored and chrisdickinson committed Jan 15, 2015
1 parent eec4c81 commit 9e62ae4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/_debug_agent.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,9 @@ Agent.prototype.notifyWait = function notifyWait() {
};

function Client(agent, socket) {
Transform.call(this);
this._readableState.objectMode = true;
Transform.call(this, {
readableObjectMode: true
});

this.agent = agent;
this.binding = this.agent.binding;
Expand Down

0 comments on commit 9e62ae4

Please sign in to comment.