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 3c8daa3

Browse filesBrowse files
FlarnaMylesBorins
authored andcommitted
events: convert errorMonitor to a normal property
Convert property errorMonitor to a normal property as non-writable caused unwanted side effects. Refs: #30932 (comment) PR-URL: #31848 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Matheus Marchini <mat@mmarchini.me> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
1 parent be90817 commit 3c8daa3
Copy full SHA for 3c8daa3

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

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

‎lib/events.js‎

Copy file name to clipboardExpand all lines: lib/events.js
+1-6Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,7 @@ ObjectDefineProperty(EventEmitter, 'captureRejections', {
9090
enumerable: true
9191
});
9292

93-
ObjectDefineProperty(EventEmitter, 'errorMonitor', {
94-
value: kErrorMonitor,
95-
writable: false,
96-
configurable: true,
97-
enumerable: true
98-
});
93+
EventEmitter.errorMonitor = kErrorMonitor;
9994

10095
// The default for captureRejections is false
10196
ObjectDefineProperty(EventEmitter.prototype, kCapture, {

0 commit comments

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