Default values for specified properties

T.J. Crowder tj.crowder at farsightsoftware.com
Fri Apr 21 05:21:00 UTC 2017


Brilliant, thanks Allen!

-- T.J. Crowder


On Fri, Apr 21, 2017 at 5:52 AM, Allen Wirfs-Brock <allen at wirfs-brock.com>
wrote:

> https://tc39.github.io/ecma262/#sec-ecmascript-standard-built-in-objects
>
> "Every other data property described in clauses 18 through 26 and in
> Annex B.2 has the attributes { [[Writable]]: true, [[Enumerable]]: false,
> [[Configurable]]: true } unless otherwise specified."
> On Apr 20, 2017, at 9:40 PM, "T.J. Crowder" <tj.crowder at farsightsoftware.
> com> wrote:
>
>> Fairly basic specification comprehension question: Is it correct that the
>> `message` property of `Error.prototype` is specified as non-enumerable,
>> because [its definition][1] doesn't explicitly say otherwise and so the
>> default properties listed in Table 4 of [Property Attributes][2] apply?
>>
>> -- T.J. Crowder
>>
>> [1]: https://tc39.github.io/ecma262/#sec-error.prototype.message
>> [2]: https://tc39.github.io/ecma262/#sec-property-attributes
>>
>> ------------------------------
>>
>> es-discuss mailing list
>> es-discuss at mozilla.org
>> https://mail.mozilla.org/listinfo/es-discuss
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20170421/fcdbc923/attachment.html>


More information about the es-discuss mailing list