Skip to content

Commit 89740a4

Browse files
BridgeARaddaleax
authored andcommittedDec 5, 2018
doc: add internal functionality details of util.inherits
PR-URL: #24755 Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Matteo Collina <[email protected]>
1 parent 5925754 commit 89740a4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎doc/api/util.md

+2
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,8 @@ Inherit the prototype methods from one [constructor][] into another. The
332332
prototype of `constructor` will be set to a new object created from
333333
`superConstructor`.
334334

335+
This mainly adds some input validation on top of
336+
`Object.setPrototypeOf(constructor.prototype, superConstructor.prototype)`.
335337
As an additional convenience, `superConstructor` will be accessible
336338
through the `constructor.super_` property.
337339

0 commit comments

Comments
 (0)
Please sign in to comment.