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
constemitter=require('events')constem1=newemitter({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: nullprototype]{},_eventsCount: 0,_maxListeners: undefined,[Symbol(kCapture)]: false}node file.js output
EventEmitter{
_events: [Object: nullprototype]{},_eventsCount: 0,_maxListeners: undefined,[Symbol(kCapture)]: true}Additional information
No response
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
run node file.js
output
as expected.
however then i run with node REPL
output
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:
node file.js output
Additional information
No response