Den 21. mar. 2010 04.41 skrev Seiji Sam Lee <[email protected]>:

> Hi!!
>
> I have a problem with two nested context, one is a master context, and the
> other one is a child context.
>
> Some like this:
>
> //This is how use the master context
> void UserContext::execute()
> {
>  PageContext*pc=new PageContext();
>  {
>  HandleScope hscope;
>  Context::Scope context_scope(_context);
>  _context->Global()->Set(String::New("hello"),String::New("hello
> world!!"));
>  _context->Enter();
>  pc->run();
>  _context->Exit();
>  }
>  delete pc;
> }
>
> pc->run() use other context, both share same SecurityToken (sure!!, an
> string with an UUID) and child context have got an object ($) with is a
> reference of master global object.
>
> Well, a code executed into the child context doesn't have access to $
> member
> 'hello', in fact $ is undefined or empty (depends of the code). Never I
> couldn't see 'hello' member into $ (or master  global object).
>

I can't see where the '$' variable is defined in your code.


>
> Is it normal? (sure not, but I don't know the solution)


>
>
> --
> v8-users mailing list
> [email protected]
> http://groups.google.com/group/v8-users
>
> To unsubscribe from this group, send email to v8-users+
> unsubscribegooglegroups.com or reply to this email with the words "REMOVE
> ME" as the subject.
>

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

To unsubscribe, reply using "remove me" as the subject.

Reply via email to