- From: Mark S. Miller <erights@google.com>
- Date: Thu, 25 Aug 2011 18:46:38 -0700
- To: Allen Wirfs-Brock <allen@wirfs-brock.com>
- Cc: public-script-coord@w3.org
Received on Friday, 26 August 2011 01:47:17 UTC
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