Default values for specified properties

Allen Wirfs-Brock allen at
Fri Apr 21 17:42:42 UTC 2017

> On Apr 21, 2017, at 4:42 AM, Michael J. Ryan <tracker1 at <mailto:tracker1 at>> wrote:
> I always assumed it was an implementation detail historically... stack is also not enumerated, though message is more surprising... I tend to remember for logging/server purposes in particular, and call it out in my clone library, as I've been hit by it many times.

ES1 (1997) Clause 15:

"Every other property described in this section has the attribute { DontEnum } (and no others) unless otherwise specified." 

Error.prototype and its properties were added to clause 15 in ES3.

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

More information about the es-discuss mailing list