It's your point about no data properties in the vtable, or the flip side
of it. The for-in loop was meant to enumerate built-ins' expando and (in
a few cases, ES3 made this more random) data-but-not-function-valued
properties, not methods.
It is indeed a just-so story, but the idea is that built-ins have
intersting data properties (predefined and possibly user-defined) but
the methods are not "interesting" to for-in users.
/be
John J Barton wrote:
I appreciate understanding why this choice.
(FWIW, I totally don't get why non-enumerable even exists).
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss