summaryrefslogtreecommitdiff
path: root/doc/api/util.md
diff options
context:
space:
mode:
authorRuben Bridgewater <ruben@bridgewater.de>2018-12-03 13:00:12 +0100
committerAnna Henningsen <anna@addaleax.net>2018-12-05 16:55:02 +0100
commit89740a4f0e15478403551ca86ac362d135319bd6 (patch)
tree0af2d0984f6e3a47414d823280df134909ddc22e /doc/api/util.md
parent59257543c3db6f9ca01a91b75855934c2a913065 (diff)
downloadandroid-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.md2
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.