We are using the V8 version 5.3.332 in my Android App. We are trying to 
debug the javascript using the Node-Inspector(0.11.3)(Also tried with 
Eclipse Chrome Dev Tools) but strangely values of certain object properties 
are not shown when we hover or seen it in scoped variables section. This 
behaviour is particularly seen for the V8 objects which has Named Property 
handler attached. If the V8 object is prepared with SetAccessor then values 
of all properties are shown properly.

We observed that, For Named Property objects, its NamedGetter is not called 
for its properties so all properties are being shown as undefined.

We are preparing the V8 object as below

Local<FunctionTemplate> funTem = FunctionTemplate::New(isolate,callback);
Local<ObjectTemplate> inst = funTem->InstanceTemplate();
inst->SetNamedPropertyHandler(NamedGetter,NamedSetter,NamedQueryCallback,0,NamedEnumerator);

When Debugger tries to evaluate the expression of this object, only its 
NamedEnumarator is called but not its NamedGetter.

Can you please let me know what could be the issue here.

-- 
-- 
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