We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 577a821 commit f1958eeCopy full SHA for f1958ee
1 file changed
lib/events.js
@@ -29,6 +29,7 @@ const {
29
ArrayPrototypeSplice,
30
ArrayPrototypeUnshift,
31
AsyncIteratorPrototype,
32
+ Boolean,
33
Error,
34
ErrorCaptureStackTrace,
35
FunctionPrototypeBind,
@@ -373,7 +374,7 @@ EventEmitter.init = function(opts) {
373
374
ObjectDefineProperty(this, kCapture, {
375
__proto__: null,
376
configurable: true,
- value: !!opts.captureRejections,
377
+ value: Boolean(opts.captureRejections),
378
writable: true,
379
});
380
} else {
0 commit comments