Version
v15.0.1
Platform
19.5.0 Darwin Kernel Version 19.5.0
Subsystem
No response
What steps will reproduce the bug?
create a js file with the code blow
const emitter = require('events')
const em1 = new emitter({ captureRejections: true })
console.log(em1)
run node file.js
output
as expected.
however then i run with node REPL
output
[Symbol(kCapture)]: false
not expected
How often does it reproduce? Is there a required condition?
always
What is the expected behavior?
captureRejections in node REPL works fine
What do you see instead?
same code
REPL output:
EventEmitter {
_events: [Object: null prototype] {},
_eventsCount: 0,
_maxListeners: undefined,
[Symbol(kCapture)]: false
}
node file.js output
EventEmitter {
_events: [Object: null prototype] {},
_eventsCount: 0,
_maxListeners: undefined,
[Symbol(kCapture)]: true
}
Additional information
No response