You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Version: v12.16.0 (latest at the moment of writing)
Platform (inside Docker image node:12-slim): Linux 8798d6927954 5.3.0-7625-generic Community contrib direction #27157677456019.10~f432cd8-Ubuntu SMP Thu Dec 19 20:35:37 UTC x86_64 GNU/Linux
Version: v12.15.0 (latest at the moment of writing)
Platform (Docker host): Linux 8798d6927954 5.3.0-7625-generic Community contrib direction #27157677456019.10~f432cd8-Ubuntu SMP Thu Dec 19 20:35:37 UTC x86_64 GNU/Linux
What steps will reproduce the bug?
Run the following code in a NodeJS console.
constevents=require('events')newEventEmitter()
How often does it reproduce? Is there a required condition?
This is consistent.
What is the expected behavior?
The output between Node 12.x versions is the same.
What do you see instead?
$ node --version
v12.16.0
$ node
Welcome to Node.js v12.16.0.
Type ".help"for more information.
> const EventEmitter = require('events')
undefined
> new EventEmitter()
EventEmitter {
_events: [Object: null prototype] {},
_eventsCount: 0,
_maxListeners: undefined,
[Symbol(kCapture)]: false
}
$ node --version
v12.15.0
$ node
Welcome to Node.js v12.16.0.
Type ".help"for more information.
> const EventEmitter = require('events')
undefined
> new EventEmitter()
EventEmitter {
_events: [Object: null prototype] {},
_eventsCount: 0,
_maxListeners: undefined,
}
Additional information
This broke our (admittedly badly written) Jest snapshots.
The text was updated successfully, but these errors were encountered:
I don't think this is so much a bug as it is a cautionary tale to not test the output of debug APIs.
Yeah, I have to agree. The output here is generated by util.inspect() and is not really part of the public API contract for Node.js. It's really intended as debugging output exposing Node.js internals. Annoying? Yes. Bug? No.
Version: v12.16.0 (latest at the moment of writing)
Platform (inside Docker image
node:12-slim
): Linux 8798d6927954 5.3.0-7625-generic Community contrib direction #27157677456019.10~f432cd8-Ubuntu SMP Thu Dec 19 20:35:37 UTC x86_64 GNU/LinuxVersion: v12.15.0 (latest at the moment of writing)
Platform (Docker host): Linux 8798d6927954 5.3.0-7625-generic Community contrib direction #27
157677456019.10~f432cd8-Ubuntu SMP Thu Dec 19 20:35:37 UTC x86_64 GNU/LinuxWhat steps will reproduce the bug?
Run the following code in a NodeJS console.
How often does it reproduce? Is there a required condition?
This is consistent.
What is the expected behavior?
The output between Node 12.x versions is the same.
What do you see instead?
Additional information
This broke our (admittedly badly written) Jest snapshots.
The text was updated successfully, but these errors were encountered: