classes and enumerability

Brendan Eich brendan at mozilla.org
Wed Dec 24 16:19:01 PST 2014


Caitlin Potter wrote:
> Supposing that methods were non-enumerable by default, would accessors be different, or also non-enumerable by default?

Non-enumerable, to match built-ins (RegExp.prototype has some notable 
accessors).

/be


More information about the es-discuss mailing list