Files
node/test/parallel
Ruben Bridgewater fb8b483c34 util: inspect (user defined) prototype properties
This is only active if the `showHidden` option is truthy.

The implementation is a trade-off between accuracy and performance.
This will miss properties such as properties added to built-in data
types.

The goal is mainly to visualize prototype getters and setters such as:

class Foo {
  ownProperty = true
  get bar() {
    return 'Hello world!'
  }
}

const a = new Foo()

The `bar` property is a non-enumerable property on the prototype while
`ownProperty` will be set directly on the created instance.

The output is similar to the one of Chromium when inspecting objects
closer. The output from Firefox is difficult to compare, since it's
always a structured interactive output and was therefore not taken
into account.

PR-URL: https://github.com/nodejs/node/pull/30768
Fixes: https://github.com/nodejs/node/issues/30183
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
2019-12-13 20:00:19 +01:00
..
2019-06-06 19:38:34 -04:00
2019-03-23 02:55:54 +01:00
2019-03-23 02:55:54 +01:00
2019-04-16 03:37:03 +02:00
2019-03-23 02:55:54 +01:00
2019-03-23 02:55:54 +01:00
2019-08-07 13:27:55 -07:00
2019-03-23 02:55:54 +01:00
2019-11-17 21:13:08 +05:30
2019-08-07 13:27:55 -07:00
2019-03-23 02:55:54 +01:00
2019-11-13 17:04:22 +00:00
2019-06-26 16:34:23 +08:00
2019-03-20 07:48:25 -07:00
2019-03-20 07:48:25 -07:00
2019-03-20 07:48:25 -07:00
2019-03-20 07:48:25 -07:00
2019-03-20 07:48:25 -07:00