Default values for specified properties
T.J. Crowder
tj.crowder at farsightsoftware.com
Fri Apr 21 11:20:42 UTC 2017
On Fri, Apr 21, 2017 at 12:11 PM, Michael J. Ryan <tracker1 at gmail.com>
wrote:
> 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`][1] makes the `message` "own" property it
creates non-enumerable is slightly surprising. I'm guessing there's history
there. :-)
-- T.J. Crowder
[1]:
http://www.ecma-international.org/ecma-262/7.0/index.html#sec-error-message
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20170421/ab778a1b/attachment-0001.html>
More information about the es-discuss
mailing list