I guess it’s probably a misunderstanding.

I was saying that a feature like lightweight traits is probably impossible to 
desugar to es5, if class syntax makes properties and methods non-enum.

> On Dec 24, 2014, at 1:50 PM, Gary Guo <nbdd0...@hotmail.com> wrote:
> 
> Object.defineProperty could easily do that.
> 
> >From: curvedm...@gmail.com <mailto:curvedm...@gmail.com>
> >Date: Wed, 24 Dec 2014 13:33:24 +0800
> >
> >Although I guess it’s not very easy to desugar to es5 if there is no way to 
> >enumerate prototype methods/properties. (probably impossible?)

_______________________________________________
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to