Re: [v8-users] Automatic To String of fields

2017-10-24 Thread J Decker
On Tuesday, October 24, 2017 at 7:32:31 PM UTC-7, J Decker wrote: > > > > On Tuesday, October 24, 2017 at 10:25:14 AM UTC-7, Ben Noordhuis wrote: >> >> On Tue, Oct 24, 2017 at 6:12 PM, J Decker wrote: >> > >> > On Tuesday, October 24, 2017 at 7:35:20 AM UTC-7, Ben Noordhuis wrote: >> >> >> >

Re: [v8-users] Automatic To String of fields

2017-10-24 Thread J Decker
On Tuesday, October 24, 2017 at 10:25:14 AM UTC-7, Ben Noordhuis wrote: > > On Tue, Oct 24, 2017 at 6:12 PM, J Decker > > wrote: > > > > On Tuesday, October 24, 2017 at 7:35:20 AM UTC-7, Ben Noordhuis wrote: > >> > >> On Tue, Oct 24, 2017 at 3:27 PM, J Decker wrote: > >> > Is there a way t

Re: [v8-users] Automatic To String of fields

2017-10-24 Thread Ben Noordhuis
On Tue, Oct 24, 2017 at 6:12 PM, J Decker wrote: > > On Tuesday, October 24, 2017 at 7:35:20 AM UTC-7, Ben Noordhuis wrote: >> >> On Tue, Oct 24, 2017 at 3:27 PM, J Decker wrote: >> > Is there a way to make a C++ class that has set accessors on the >> > prototype >> > to get its data logged? >> >

Re: [v8-users] Automatic To String of fields

2017-10-24 Thread J Decker
On Tuesday, October 24, 2017 at 7:35:20 AM UTC-7, Ben Noordhuis wrote: > > On Tue, Oct 24, 2017 at 3:27 PM, J Decker > > 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" );

Re: [v8-users] Automatic To String of fields

2017-10-24 Thread Ben Noordhuis
On Tue, Oct 24, 2017 at 3:27 PM, J Decker 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:

[v8-users] Automatic To String of fields

2017-10-24 Thread J Decker
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 ): and have it show sack.Image.Color { r: 255, g:255, b:255, a:255 } (or some order therteof instead of just sack.Image.Color {} ?