MCPcopy
hub / github.com/PokemonGoF/PokemonGo-Bot / Writable

Function Writable

map-chat/javascript/browserMqtt.js:4102–4116  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

4100}
4101
4102function Writable(options) {
4103 var Duplex = require('./_stream_duplex');
4104
4105 // Writable ctor is applied to Duplexes, though they're not
4106 // instanceof Writable, they're instanceof Readable.
4107 if (!(this instanceof Writable) && !(this instanceof Duplex))
4108 return new Writable(options);
4109
4110 this._writableState = new WritableState(options, this);
4111
4112 // legacy.
4113 this.writable = true;
4114
4115 Stream.call(this);
4116}
4117
4118// Otherwise people can pipe Writable streams, which is just wrong.
4119Writable.prototype.pipe = function() {

Callers

nothing calls this directly

Calls 1

callMethod · 0.80

Tested by

no test coverage detected