>
> 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 }
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to