| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 697324e commit 5b2ca85
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1271,8 +1271,8 @@ If the `decodeStrings` property is set in the constructor options, then | |||
| 1271 | 1271 | indicate the character encoding of the string. This is to support | |
| 1272 | 1272 | implementations that have an optimized handling for certain string | |
| 1273 | 1273 | data encodings. If the `decodeStrings` property is explicitly set to `false`, | |
| 1274 | - the `encoding` argument can be safely ignored, and `chunk` will always be a | ||
| 1275 | - `Buffer`. | ||
| 1274 | + the `encoding` argument can be safely ignored, and `chunk` will remain the same | ||
| 1275 | + object that is passed to `.write()`. | ||
| 1276 | 1276 | ||
| 1277 | 1277 | The `writable._write()` method is prefixed with an underscore because it is | |
| 1278 | 1278 | internal to the class that defines it, and should never be called directly by | |
@@ -1501,9 +1501,9 @@ Implementers, and only from within the `readable._read()` method. | |||
| 1501 | 1501 | It is recommended that errors occurring during the processing of the | |
| 1502 | 1502 | `readable._read()` method are emitted using the `'error'` event rather than | |
| 1503 | 1503 | being thrown. Throwing an Error from within `readable._read()` can result in | |
| 1504 | - expected and inconsistent behavior depending on whether the stream is operating | ||
| 1505 | - in flowing or paused mode. Using the `'error'` event ensures consistent and | ||
| 1506 | - predictable handling of errors. | ||
| 1504 | + unexpected and inconsistent behavior depending on whether the stream is | ||
| 1505 | + operating in flowing or paused mode. Using the `'error'` event ensures | ||
| 1506 | + consistent and predictable handling of errors. | ||
| 1507 | 1507 | ||
| 1508 | 1508 | ```js | |
| 1509 | 1509 | const Readable = require('stream').Readable; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments