Interesting. Do you have a repro that I can use? In my local tests it works fine.
Cheers, Yang On Mon, Mar 6, 2017 at 9:33 AM <[email protected]> wrote: > > 2:03 PM (less than a minute ago) > yes, Exactly. Debugger is able to get the property names through > enumerator but not its corresponding values. All properties are shown as > undefined. We expect, V8 should call NamedGetter for each property and send > those prop-value map to the debugger. The same is happening for > Non-NamedProperty objects. > > On Monday, March 6, 2017 at 1:16:08 PM UTC+5:30, Yang Guo wrote: > > We use the NamedEnumerator to find the property names of the object. > Otherwise there is no way for V8 to know what property name to pass to > NamedGetter. NamedEnumerator return an array of property names that you > want the debugger to show. > > Cheers, > > Yang > > On Mon, Mar 6, 2017 at 8:15 AM <[email protected]> wrote: > > 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-dev mailing list > > [email protected] > > > http://groups.google.com/group/v8-dev > --- > You received this message because you are subscribed to the Google Groups > "v8-dev" 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. > > -- > > > > * • * > *Yang Guo** • **Google Germany GmbH* > * • *Erika-Mann-Str. 33 > * • *80636 Munich > > • [email protected] > > > Geschäftsführer: Matthew Scott Sucherman, Paul Terence Manicle > > Registergericht und -nummer: Hamburg, HRB 86891 Sitz der Gesellschaft: > Hamburg > > Diese E-Mail ist vertraulich. Wenn Sie nicht der richtige Adressat sind, > leiten Sie diese bitte nicht weiter, informieren Sie den Absender und > löschen Sie die E-Mail und alle Anhänge. Vielen Dank. This e-mail is > confidential. If you are not the right addressee please do not forward it, > please inform the sender, and please erase this e-mail including any > attachments. Thanks. > > -- > -- > v8-dev mailing list > [email protected] > http://groups.google.com/group/v8-dev > --- > You received this message because you are subscribed to the Google Groups > "v8-dev" 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. > -- * • * *Yang Guo** • **Google Germany GmbH* * • *Erika-Mann-Str. 33 * • *80636 Munich • [email protected] Geschäftsführer: Matthew Scott Sucherman, Paul Terence Manicle Registergericht und -nummer: Hamburg, HRB 86891 Sitz der Gesellschaft: Hamburg Diese E-Mail ist vertraulich. Wenn Sie nicht der richtige Adressat sind, leiten Sie diese bitte nicht weiter, informieren Sie den Absender und löschen Sie die E-Mail und alle Anhänge. Vielen Dank. This e-mail is confidential. If you are not the right addressee please do not forward it, please inform the sender, and please erase this e-mail including any attachments. Thanks. -- -- v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev --- You received this message because you are subscribed to the Google Groups "v8-dev" 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.
