Monday, December 19, 2022

GetSuperConstructor

12.3.7.2 Runtime Semantics: GetSuperConstructor ( )

return GetThisEnvironment().[[FunctionObject]].[[GetPrototypeOf]]()

example

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/super : super([arguments]) // calls the parent constructor.

No comments:

Post a Comment