not enumerable, all around. In the proposal it say class def method will follow 
the same attribute conventions as obj lit concise methods.


Erik Arvidsson <[email protected]> wrote:

>1. Are methods supposed to be enumerable?
>
>The native classes (Date etc) don't have enumerable methods and the
>new method property shorthand for object literals is not enumerable
>either.
>
>2. Should constructor be enumerable?
>
>function C() {}
>var c = new C;
>c.__proto__.propertyIsEnumerable('constructor')  // false
>
>-- 
>erik
>_______________________________________________
>es-discuss mailing list
>[email protected]
>https://mail.mozilla.org/listinfo/es-discuss
>
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to