Skip to content

Commit f1958ee

Browse files
committed
fixup! restore Boolean
1 parent 577a821 commit f1958ee

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/events.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ const {
2929
ArrayPrototypeSplice,
3030
ArrayPrototypeUnshift,
3131
AsyncIteratorPrototype,
32+
Boolean,
3233
Error,
3334
ErrorCaptureStackTrace,
3435
FunctionPrototypeBind,
@@ -373,7 +374,7 @@ EventEmitter.init = function(opts) {
373374
ObjectDefineProperty(this, kCapture, {
374375
__proto__: null,
375376
configurable: true,
376-
value: !!opts.captureRejections,
377+
value: Boolean(opts.captureRejections),
377378
writable: true,
378379
});
379380
} else {

0 commit comments

Comments
 (0)