On Tue, Oct 24, 2017 at 3:27 PM, J Decker <d3c...@gmail.com> wrote: > Is there a way to make a C++ class that has set accessors on the prototype > to get its data logged? > > so like > var color = new Color( "white" ); > console.log( color ):
I think you are asking about the difference between PropertyCallbackInfo<T>::This() and PropertyCallbackInfo<T>::Holder(). The first is the instance object, the second the prototype object. (If it's not that, please clarify what "gets its data logged" means.) > Also, I added a toString() method to the prototype, but apparently I have to > append it to a string (as in console.log( ""+color ) } or call it > explicitly... console.log( color.toString() ) Yes. Did you expect something else? -- -- 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.