Re: Array property of custom object

Boris Zbarsky <[email protected]>
Newsgroups gmane.comp.mozilla.devel.jseng
Message-ID <[email protected]>
On 5/3/16 12:45 PM, Mihai Dobrescu wrote:
> Isn't there a generic trap for that in order to know the current item accessed?

Proxies have getOwnPropertyDescriptor, yes.  But to even get to that 
point you have to have some other bits in place if you're doing for-in 
or for-of.  Again, a proxy can do all the relevant bits.

-Boris
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.