Define static properties and prototype properties with the class syntax

Rick Waldron waldron.rick at gmail.com
Sun Dec 14 10:00:25 PST 2014


On Sun Dec 14 2014 at 10:40:53 AM Andrea Giammarchi <
andrea.giammarchi at gmail.com> wrote:

> as side note, I wonder why static hasn't been considered definable as
> group/object
>


>
> ```js
> class Foo {
>   static {
>     bar: 'bar',
>     get defaults() {
>       return {de:'faults'};
>     }
>   }
> }
> ```
>

I like that, can you write up a proposal?

Rick

>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20141214/ef8637f3/attachment.html>


More information about the es-discuss mailing list