Skip to content

util: set `super_` property to non-enumerable

Rodrigo Muino Tomonari requested to merge github/fork/BridgeAR/hide-super into master

Using util.inherits() adds a super_ property to the constructor and inspecting that constructor is going to show that property even though it's not useful for the user.

Therefore the property is now set as non-enumerable and such entries are not visible by default when using console.log() or util.inspect().

This significantly reduces the amount of data shown when inspecting streams.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines

Merge request reports

Loading