Skip to content

Commit

Permalink
doc: add internal functionality details of util.inherits
Browse files Browse the repository at this point in the history
PR-URL: #24755
Reviewed-By: Joyee Cheung <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Matteo Collina <[email protected]>
  • Loading branch information
BridgeAR authored and addaleax committed Dec 5, 2018
1 parent 5925754 commit 89740a4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions doc/api/util.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down

0 comments on commit 89740a4

Please sign in to comment.