Files
node/lib/internal
Luigi Pinca 49f1bb9b93 stream: ensure writable.destroy() emits error once
Prevent the `'error'` event from being emitted multiple times if
`writable.destroy()` is called with an error before the `_destroy()`
callback is called.

Emit the first error, discard all others.

PR-URL: https://github.com/nodejs/node/pull/26057
Fixes: https://github.com/nodejs/node/issues/26015
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: James M Snell <jasnell@gmail.com>
2019-03-05 23:52:36 +01:00
..
2019-03-05 02:06:46 +01:00
2019-03-01 12:27:15 +01:00
2019-02-13 05:22:58 +01:00
2019-03-01 00:04:16 +01:00
2019-02-14 00:00:50 +01:00
2018-05-18 15:25:41 +02:00
2018-11-16 21:56:29 +09:00
2018-11-26 20:34:32 +05:30
2018-08-12 10:44:53 -07:00
2019-03-05 18:37:39 +01:00
2019-02-03 20:40:16 +01:00

Internal Modules

The modules in lib/internal are intended for internal use in Node.js core only, and are not accessible with require() from user modules. These modules can be changed at any time. Reliance on these modules outside of core is not supported in any way.