That worked. Thanks!

On Wed, Mar 7, 2012 at 12:13 PM, Shezan Baig <[email protected]> wrote:

> I havent verified this, but you can try:
>
> const char *flag = "--use-strict";
> v8::V8::SetFlagsFromString(flag, strlen(flag));
>
>
>
> On Wed, Mar 7, 2012 at 2:18 PM, moshisushi <[email protected]> wrote:
>
>> Hi!
>>
>> Is it possible to tell V8 to compile and run my scripts in strict
>> mode, even if 'use strict'; hasn't been defined in the script
>> explicitly? If not, is there a way to achieve this other than
>> prepending 'use strict'; to the source code string?
>>
>> Thanks,
>> Henry
>>
>> --
>> v8-users mailing list
>> [email protected]
>> http://groups.google.com/group/v8-users
>
>
>  --
> v8-users mailing list
> [email protected]
> http://groups.google.com/group/v8-users
>

-- 
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users

Reply via email to