doc: add internal functionality details of util.inherits · nodejs/node@89740a4 (original) (raw)

Original file line number Diff line number Diff line change
@@ -332,6 +332,8 @@ Inherit the prototype methods from one [constructor][] into another. The
332 332 prototype of `constructor` will be set to a new object created from
333 333 `superConstructor`.
334 334
335 +This mainly adds some input validation on top of
336 +`Object.setPrototypeOf(constructor.prototype, superConstructor.prototype)`.
335 337 As an additional convenience, `superConstructor` will be accessible
336 338 through the `constructor.super_` property.
337 339