Re: [WebIDL] troublesome names, property attributes and related issues

On Thu, Aug 25, 2011 at 4:37 PM, Allen Wirfs-Brock <allen@wirfs-brock.com>wrote:

> If you use the ES built-in objects as examplars you will generally see that
> it is only properties that in some way represent actual program data that
> are made  [[Enumerable]]: true.
>

I agree with Allen on all points. To emphasize this last point, remember
that JSON.stringify(obj) skips all non-enumerable properties of obj. Since
WebIDL constants do not vary, there's little reason to include them in a
JSON serialization and much reason not to.


-- 
    Cheers,
    --MarkM

Received on Friday, 26 August 2011 01:47:17 UTC