proposal: Object Members

T.J. Crowder tj.crowder at
Tue Jul 24 07:15:30 UTC 2018

On Tue, Jul 24, 2018 at 8:00 AM, Michael Theriot
<michael.lee.theriot at> wrote:
> `Reflect.construct` allows subclasses to obtain internal slots without
> `super()` / class syntax.

Indeed, Darien pointed that out as well (and if you two hadn't, I would
have. :-)

> This is the first I have heard `class` is anything but sugar.

The accurate statement would be that `class` lets you do things you
couldn't do in ES5. But so does `Reflect.construct`. I believe it was
important to the "no `new`" crowd that a non-`class` mechanism existed for
creating objects using Error and Array as prototypes.

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

More information about the es-discuss mailing list