Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 17fc4b0

Browse filesBrowse files
ronagtargos
authored andcommitted
console: unregister temporary error listener
PR-URL: #30852 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Rich Trott <rtrott@gmail.com>
1 parent 1811b1a commit 17fc4b0
Copy full SHA for 17fc4b0

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Collapse file

‎lib/internal/console/constructor.js‎

Copy file name to clipboardExpand all lines: lib/internal/console/constructor.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ function createWriteErrorHandler(instance, streamSymbol) {
201201
// removed after the event, non-console.* writes won't be affected.
202202
// we are only adding noop if there is no one else listening for 'error'
203203
if (stream.listenerCount('error') === 0) {
204-
stream.on('error', noop);
204+
stream.once('error', noop);
205205
}
206206
}
207207
};

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.