We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ceace1f commit eeea3fbCopy full SHA for eeea3fb
lib/internal/fs/streams.js
@@ -61,7 +61,9 @@ function ReadStream(path, options) {
61
options.highWaterMark = 64 * 1024;
62
63
// For backwards compat do not emit close on destroy.
64
- options.emitClose = false;
+ if (options.emitClose === undefined) {
65
+ options.emitClose = false;
66
+ }
67
68
Readable.call(this, options);
69
@@ -237,7 +239,9 @@ function WriteStream(path, options) {
237
239
options = copyObject(getOptions(options, {}));
238
240
241
242
243
244
245
246
Writable.call(this, options);
247
0 commit comments