Comments on Sept Meeting Notes

Kevin Smith zenparsing at gmail.com
Fri Sep 27 12:58:08 PDT 2013


>
> In this case I doubt @iterator or @toStringTag should be visible. (And I
> know there a better ways to test for empty objects, but for-in testing is
> common enough...)
>
>
Thanks Andre!  I fear this example merely begs the question of whether such
an object should be considered "empty" with respect to enumerability.
 Would anything break if the following object were considered "not empty"?

    var obj = { "@iterator"() { /* ... */ } };

More generally, what is accomplished by hiding these hooks from for-in?

{ Kevin }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20130927/147b27f4/attachment.html>


More information about the es-discuss mailing list