The NamedPropertyEnumeratorCallback in
ObjectTemplate::SetNamedPropertyHandler() is your friend.

Best regards,
Michael


On Wed, May 7, 2014 at 10:59 PM, Jane Chen <[email protected]> wrote:

> With v8 for any JavaScript object foo, I can call:
>
> for (var key in foo) {print(key+":"+foo[key]);};
>
> Is there a way for me to get a callback from the above for...in loop?  In
> other words, can I register an interceptor callback for the for..in access
> of foo?
>
> --
> --
> v8-users mailing list
> [email protected]
> http://groups.google.com/group/v8-users
> ---
> You received this message because you are subscribed to the Google Groups
> "v8-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
-- 
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
--- 
You received this message because you are subscribed to the Google Groups 
"v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to