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  
> wrote:
>
>> 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 defined
>>
>> However, 'output[request.host]' is perfectly fine.
>>
>> The two maps are installed with the same code, the wrap/unwrap are the 
>> same, what's the difference?
>>
>> I guess my confusion is what exactly does bracket mean here? Does it 
>> invoke the named property interceptor?
>>
>> -- 
>> -- 
>> v8-users mailing list
>> v8-u...@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+u...@googlegroups.com .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

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


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

2017-06-29 Thread Jakob Kummerow
The equivalent of options.verbose is options["verbose"] (note the quotes).
Does that help?

On Thu, Jun 29, 2017 at 10:07 PM, wxz  wrote:

> 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 defined
>
> However, 'output[request.host]' is perfectly fine.
>
> The two maps are installed with the same code, the wrap/unwrap are the
> same, what's the difference?
>
> I guess my confusion is what exactly does bracket mean here? Does it
> invoke the named property interceptor?
>
> --
> --
> 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.
>

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


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

However, 'output[request.host]' is perfectly fine.

The two maps are installed with the same code, the wrap/unwrap are the 
same, what's the difference?

I guess my confusion is what exactly does bracket mean here? Does it invoke 
the named property interceptor?

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


[v8-users] Build shared ICU data file(icudt.dll) for windows using gyp file

2017-06-29 Thread Harsh Gupta
We've found an issue where the pre-built ICU data file (icudt.dll) is of 
ICU version 56, and the v8 binaries are getting built with ICU version 58.

Please take a look at version of: 
https://chromium.googlesource.com/chromium/deps/icu/+/450be73c9ee8ae29d43d4fdc82febb2a5f62bfb5/windows/icudt.dll
 
and 
https://chromium.googlesource.com/chromium/deps/icu/+/450be73c9ee8ae29d43d4fdc82febb2a5f62bfb5/source/common/unicode/uvernum.h#61.
 
Former is pre-built binary of version 56, and latter corresponds to ICU 58, 
and this is causing failure in v8::V8::InitializeICU()

Please tell how can we build the ICU shared data file using GYP?

Thanks!
Harsh

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