How to refer to the current prototype of a class.

/#!/JoePea joe at
Sun Aug 7 05:20:50 UTC 2016

On Sun, Jul 31, 2016 at 4:15 AM, Claude Pache <claude.pache at>

> What is the issue with just `Foo.prototype`?

​It means it is subject to renaming (therefore mistakes) when the class
name needs to be changed. Also, consider how lengthy it is to access a
getter or setter:

'someSetter'), value)


current.someSetter = value

Having such a keyword for convenience may also encourage class designers to
avoid the [Fragile Base Class Problem](

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list