diff options
author | Ruben Bridgewater <ruben@bridgewater.de> | 2018-12-03 13:00:12 +0100 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2018-12-05 16:55:02 +0100 |
commit | 89740a4f0e15478403551ca86ac362d135319bd6 (patch) | |
tree | 0af2d0984f6e3a47414d823280df134909ddc22e /doc/api/util.md | |
parent | 59257543c3db6f9ca01a91b75855934c2a913065 (diff) | |
download | android-node-v8-89740a4f0e15478403551ca86ac362d135319bd6.tar.gz android-node-v8-89740a4f0e15478403551ca86ac362d135319bd6.tar.bz2 android-node-v8-89740a4f0e15478403551ca86ac362d135319bd6.zip |
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>
Diffstat (limited to 'doc/api/util.md')
-rw-r--r-- | doc/api/util.md | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/api/util.md b/doc/api/util.md index 0efa9461ab..c9681d1c2b 100644 --- a/doc/api/util.md +++ b/doc/api/util.md @@ -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. |