Script::Compile() binds the script to that context only. Script::New() can 
compile scripts in a single context, but allows those scripts to be run in 
any context.

On Saturday, August 24, 2013 9:19:24 AM UTC-7, Amaranth F wrote:
>
> How can you use more than one script in a model named "per context per 
> script"? without the model you can simply call Script::Compile() in the 
> same context more than once.
>
> 在 2013年8月21日星期三UTC+8下午8时48分28秒,dan wu写道:
>>
>> When I have many script,  I have to create many Context to compile and 
>> execute these scripts in "per context per script" model,it will take up a 
>> lot of memory.I want to compile multiple scripts in one Context,how can I 
>> do it?
>>
>> Thank you!
>>
>

-- 
-- 
v8-users mailing list
[email protected]
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to