Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fixup: nits
  • Loading branch information
mcollina committed Apr 17, 2018
commit 40381636751eab3fc296888038f8e0de121e87a6
2 changes: 1 addition & 1 deletion lib/internal/streams/destroy.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function destroy(err, cb) {

if (cb) {
cb(err);
} else if (err && !(readableErrored || writableErrored)) {
} else if (err && !readableErrored && !writableErrored) {
process.nextTick(emitErrorNT, this, err);
}
return this;
Expand Down
1 change: 0 additions & 1 deletion test/parallel/test-process-external-stdio-close.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ if (process.argv[2] === 'child') {
assert.strictEqual(signal, null);
}));

child.stderr.pipe(process.stderr);
child.stdout.destroy();
child.send('go');
}
2 changes: 1 addition & 1 deletion test/parallel/test-stream-duplex-error-write.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ duplex.on('error', common.mustCall(function() {
duplex.on('end', common.mustNotCall());

duplex.end('hello');
duplex.on('data', function() {});
duplex.resume();