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
Next Next commit
fixup!
  • Loading branch information
benjamingr committed Feb 11, 2022
commit 6d10c205d369226d46c3aafa3044184ff8f0fa8e
3 changes: 2 additions & 1 deletion test/parallel/test-stream-filter.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,9 @@ const { setTimeout } = require('timers/promises');
assert.deepStrictEqual(result, expected);
})().then(common.mustCall());
}

{
// Throwing an error during `map` (sync)
// Throwing an error during `filter` (sync)
const stream = Readable.from([1, 2, 3, 4, 5]).filter((x) => {
if (x === 3) {
throw new Error('boom');
Expand Down