Default values for specified properties

Allen Wirfs-Brock allen at wirfs-brock.com
Fri Apr 21 17:42:42 UTC 2017


> On Apr 21, 2017, at 4:42 AM, Michael J. Ryan <tracker1 at gmail.com <mailto:tracker1 at gmail.com>> 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.

Allen 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20170421/7a4e75eb/attachment.html>


More information about the es-discuss mailing list