> I still don't understand what the point of this call is under any 
circumstances  when you can get the internal fields out of your object

The first pass weak handle callback can call only a couple v8 functions 
(i.e. reset the handle and set up the second-pass callback) and is not 
supposed to pull internal fields from the object. More v8 functions can be 
called in the second pass callback, but that callback is only called from 
the message pump, which makes it unusable for long-running scripts that 
don't get a chance to pump the message loop in the middle of the script. 
This leaves us only with packing everything into the weak callback 
parameter, which unnecessarily duplicates these internal fields in the 
parameter and requires an extra structure to maintain within the 
application and synchronize them between the object and weak handle 
parameters. 

-- 
-- 
v8-users mailing list
v8-users@googlegroups.com
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 v8-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to