Re: [v8-users] question on the sample file process.cc

2017-06-30 Thread wxz
; JavaScript object, with all the behavior you would expect. > > On the C++ side, "output" is a map<string, string>, but "output_obj" is a > JavaScript object created from that map (via the WrapMap(output) call), > and that's what's exposed to the

Re: [v8-users] question on the sample file process.cc

2017-06-30 Thread wxz
UTC-4, Jakob Kummerow wrote: > The equivalent of options.verbose is options["verbose"] (note the > quotes). Does that help? > > On Thu, Jun 29, 2017 at 10:07 PM, wxz <xzwan...@gmail.com > > wrote: > >> hi all, >> >> there are two maps used in th

Re: [v8-users] question on the sample file process.cc

2017-06-29 Thread wxz
YES! Thanks. On Thursday, June 29, 2017 at 5:07:20 PM UTC-4, Jakob Kummerow wrote: > > The equivalent of options.verbose is options["verbose"] (note the > quotes). Does that help? > > On Thu, Jun 29, 2017 at 10:07 PM, wxz <xzwan...@gmail.com > > wrote: >

[v8-users] question on the sample file process.cc

2017-06-29 Thread wxz
hi all, there are two maps used in this example, one for 'options', one for 'output'. My question is, why is that in the script, the brackets [] works for 'output', but not for 'options'? For example, if change the line: options.verbose ===> options[verbose] it returns error: verbose is not