Browse Source

_debug_agent: use `readableObjectMode` option

Use public `readableObjectMode` option to construct `Transform`
instead of accessing private `_readableState.objectMode`.

Partially addresses https://github.com/iojs/io.js/issues/445.

PR-URL: https://github.com/iojs/io.js/pull/270
Reviewed-By: Fedor Indutny <fedor@indutny.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Bert Belder <bertbelder@gmail.com>
Reviewed-By: Chris Dickinson <christopher.s.dickinson@gmail.com>
v1.8.0-commit
Vladimir Kurchatkin 10 years ago
committed by Chris Dickinson
parent
commit
9e62ae4304
  1. 5
      lib/_debug_agent.js

5
lib/_debug_agent.js

@ -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;

Loading…
Cancel
Save