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`.
  • Loading branch information
vkurchatkin committed Jan 10, 2015
1 parent b8891d6 commit 566b3e4
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 566b3e4

Please sign in to comment.