| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 0d19853 commit e6c8da4
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -695,6 +695,7 @@ file.end('world!'); | |||
| 695 | 695 | #### writable.setDefaultEncoding(encoding) | |
| 696 | 696 | ||
| 697 | 697 | * `encoding` {String} The new default encoding | |
| 698 | + * Return: `this` | ||
| 698 | 699 | ||
| 699 | 700 | Sets the default encoding for a writable stream. | |
| 700 | 701 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -251,6 +251,7 @@ Writable.prototype.setDefaultEncoding = function setDefaultEncoding(encoding) { | |||
| 251 | 251 | if (!Buffer.isEncoding(encoding)) | |
| 252 | 252 | throw new TypeError('Unknown encoding: ' + encoding); | |
| 253 | 253 | this._writableState.defaultEncoding = encoding; | |
| 254 | + return this; | ||
| 254 | 255 | }; | |
| 255 | 256 | ||
| 256 | 257 | function decodeChunk(state, chunk, encoding) { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments