Skip to content
Closed
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
ronag committed Feb 22, 2020
commit 40c0b13c90ad5d394e137851a6ecd0f49becd376
6 changes: 3 additions & 3 deletions test/parallel/test-stream-pipeline-uncaught.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,18 @@ const {
const assert = require('assert');

process.on('uncaughtException', common.mustCall((err) => {
assert.strictEqual(err.message, 'asd');
assert.strictEqual(err.message, 'error');
}));

// Ensure that pipeline that ends with Promise
// still propagates error to uncaughtException.
const s = new PassThrough();
s.end('asd');
s.end('data');
pipeline(s, async function(source) {
for await (const chunk of source) {
chunk;
}
}, common.mustCall((err) => {
assert.ifError(err);
throw new Error('asd');
throw new Error('error');
}));