Skip to content

Commit 9e62ae4

Browse files
vkurchatkinchrisdickinson
authored andcommitted
_debug_agent: use readableObjectMode option
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]>
1 parent eec4c81 commit 9e62ae4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/_debug_agent.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,9 @@ Agent.prototype.notifyWait = function notifyWait() {
8383
};
8484

8585
function Client(agent, socket) {
86-
Transform.call(this);
87-
this._readableState.objectMode = true;
86+
Transform.call(this, {
87+
readableObjectMode: true
88+
});
8889

8990
this.agent = agent;
9091
this.binding = this.agent.binding;

0 commit comments

Comments
 (0)