doc: add internal functionality details of util.inherits
PR-URL: https://github.com/nodejs/node/pull/24755 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
This commit is contained in:
parent
59257543c3
commit
89740a4f0e
@ -332,6 +332,8 @@ Inherit the prototype methods from one [constructor][] into another. The
|
||||
prototype of `constructor` will be set to a new object created from
|
||||
`superConstructor`.
|
||||
|
||||
This mainly adds some input validation on top of
|
||||
`Object.setPrototypeOf(constructor.prototype, superConstructor.prototype)`.
|
||||
As an additional convenience, `superConstructor` will be accessible
|
||||
through the `constructor.super_` property.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user