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:
Ruben Bridgewater 2018-12-03 13:00:12 +01:00 committed by Anna Henningsen
parent 59257543c3
commit 89740a4f0e
No known key found for this signature in database
GPG Key ID: 9C63F3A6CD2AD8F9

View File

@ -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.