I want to create 2 context, one after the other and within these 2 context compile and execute javascript, and finally pass this contexts and compiled javascript to two threads to execute the compiled script. the scenario is: 1- Create first context 2- Enter this context using context scope and create string containing javascript source code like"Hello, World" 3- compile and execute this script 4- Create the 2nd context 5- Enter the 2nd context using context scope and create 2nd string containing javascript code like "Good morning" 6- compile and run the script 7- declare 2 threads like this p_thread thread1, thread2; 8- pass the first context and the first compiled string to the first thread 9- pass the 2nd context and the 2nd compiled string to the 2nd thread I tried to do this by different strategy but I failed to make it run successfully, so is this scenario feasible? or it is impossible using v8-engine? thank you,
On Sat, Feb 15, 2014 at 6:16 PM, Ben Noordhuis <[email protected]> wrote: > On Sat, Feb 15, 2014 at 3:21 PM, Sara Abdelhameed > <[email protected]> wrote: > > Actually, I don't understand what you mean; but suppose if I have this > > scenario > > 1- create 1st context > > 2- enter it and declare some objects here and do some operations on them > > 3- then exit this context > > 4- create 2nd context > > 5- enter 2nd context > > 6- here I want to make some operations on object from 1st context > > > > in the 6th step how can I do this? if I set the security tokens of the > first > > context to any value what this mean? > > > > thank you in advance > > If you're not interested in access control, then forget what I said > about security tokens. The default is no access control and, going by > your description, is what you're after. > > I'm not quite sure what you mean with 'how can I do this?'. Is your > question how to get objects from context A to context B? It might help > if you give some, ah, context by telling what problem you're trying to > solve. > > -- > -- > v8-users mailing list > [email protected] > http://groups.google.com/group/v8-users > --- > You received this message because you are subscribed to a topic in the > Google Groups "v8-users" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/v8-users/SVdgPWTg7S8/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > -- -- 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.
