CompileFunctionInContext seems interesting. Do var's get added to 
context_extension? Also, is it possible to make a generator function with 
the?

On Friday, November 25, 2016 at 7:16:56 PM UTC-6, [email protected] wrote:
>
> A HandleScope does not store any key-value pairs.
>
> It sounds like what you need is to create multiple Contexts. If that's not 
> quite what you want, I'd suggest creating objects using Object::New and 
> using them as the receiver in CompileFunctionInContext.
>
> ~Theodore
>
> On Wednesday, November 23, 2016 at 4:17:48 PM UTC-8, Francisco Tolmasky 
> wrote:
>>
>> I'd like to replicate the effect of eval in a C++ function. In other 
>> words, I'd like to be able to eval and affect the current HandleScope. So 
>> if I do "var x = 10", I'd like the HandleScope to get a x added, not for 
>> the Context's global to receive the x. Is this possible?
>>
>> I suppose a parallel question is, can I "push" a scope for Script->Run? 
>> Basically, I'd like successive Runs to modify the same scope, not the 
>> global, the same way successive evals.
>>
>> Thanks,
>>
>> Francisco
>>
>

-- 
-- 
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/d/optout.

Reply via email to