Skip to content
Open
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! Review suggestion
Co-authored-by: Jordan Harband <ljharb@gmail.com>
  • Loading branch information
erights and ljharb authored Jun 19, 2025
commit e7aeac9b652d9f24d9e064f27c7c23768722e150
4 changes: 3 additions & 1 deletion lib/events.js
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,9 @@ EventEmitter.init = function(opts) {
validateBoolean(opts.captureRejections, 'options.captureRejections');
ObjectDefineProperty(this, kCapture, {
__proto__: null,
value: Boolean(opts.captureRejections),
configurable: true,
value: !!opts.captureRejections,
writable: true,
});
Comment thread
erights marked this conversation as resolved.
} else {
// Assigning the kCapture property directly saves an expensive
Expand Down