From 89740a4f0e15478403551ca86ac362d135319bd6 Mon Sep 17 00:00:00 2001 From: Ruben Bridgewater Date: Mon, 3 Dec 2018 13:00:12 +0100 Subject: [PATCH] doc: add internal functionality details of util.inherits PR-URL: https://github.com/nodejs/node/pull/24755 Reviewed-By: Joyee Cheung Reviewed-By: Luigi Pinca Reviewed-By: Matteo Collina --- doc/api/util.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/api/util.md b/doc/api/util.md index 0efa9461abe649..c9681d1c2b2ab7 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.