doc: remove _writableState reference
PR-URL: https://github.com/nodejs/node/pull/20004 Fixes: https://github.com/nodejs/node/issues/6799 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
parent
dadddcbf7b
commit
4082bdf199
@ -1652,8 +1652,7 @@ const { StringDecoder } = require('string_decoder');
|
|||||||
class StringWritable extends Writable {
|
class StringWritable extends Writable {
|
||||||
constructor(options) {
|
constructor(options) {
|
||||||
super(options);
|
super(options);
|
||||||
const state = this._writableState;
|
this._decoder = new StringDecoder(options && options.defaultEncoding);
|
||||||
this._decoder = new StringDecoder(state.defaultEncoding);
|
|
||||||
this.data = '';
|
this.data = '';
|
||||||
}
|
}
|
||||||
_write(chunk, encoding, callback) {
|
_write(chunk, encoding, callback) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user