Finding a "safety syntax" for classes

John J Barton johnjbarton at
Wed Mar 21 12:00:45 PDT 2012

On Wed, Mar 21, 2012 at 11:52 AM, Russell Leggett
<russell.leggett at> wrote:
> On Wed, Mar 21, 2012 at 2:47 PM, Allen Wirfs-Brock <allen at>
> wrote:
>> On Mar 21, 2012, at 8:41 AM, Russell Leggett wrote:
>> On Wed, Mar 21, 2012 at 11:12 AM, Kevin Smith <khs4473 at> wrote:
>>>> I think its easier to explain - it will actually result in a constructor
>>>> on the prototype.
>>>> The actual constructor function and the .constructor property really
>>>> should always be in sync - this helps with that.

So the proposal is that the class body declares a function called
"constructor" in with other functions that will end up on the
[[Prototype]] but the instance created from 'new' operating on the
class function call will have an own property "constructor" that
points to this function. Will the property also appear on the
[[Prototype]] under 'constructor'?


More information about the es-discuss mailing list