-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
Closed
Closed
Copy link
Labels
confirmed-bugIssues with confirmed bugs.Issues with confirmed bugs.replIssues and PRs related to the REPL subsystem.Issues and PRs related to the REPL subsystem.
Description
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
[Symbol(kCapture)]: true
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
Metadata
Metadata
Assignees
Labels
confirmed-bugIssues with confirmed bugs.Issues with confirmed bugs.replIssues and PRs related to the REPL subsystem.Issues and PRs related to the REPL subsystem.