Default values for specified properties
Michael J. Ryan
tracker1 at gmail.com
Fri Apr 21 11:42:42 UTC 2017
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.
Michael J. Ryan - tracker1 at gmail.com - http://tracker1.info
Please excuse grammar errors and typos, as this message was sent from my
On Apr 21, 2017 4:21 AM, "T.J. Crowder" <tj.crowder at farsightsoftware.com>
> On Fri, Apr 21, 2017 at 12:11 PM, Michael J. Ryan <tracker1 at gmail.com>
>> I've always felt that made cloning and serializing Error based instances
>> particularly fun.
> Well, the one on `Error.prototype` is just the `""` default anyway. But
> yes, the fact that [`Error`] makes the `message` "own" property it
> creates non-enumerable is slightly surprising. I'm guessing there's history
> there. :-)
> -- T.J. Crowder
> : http://www.ecma-international.org/ecma-262/7.0/index.html#
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the es-discuss