Hi,

you need to be in a context in order to call Script::New(). However, the
resulting script object can be then run in *any* context, not only in the
context used for compiling.


Sincerely,
Ondrej Zara




2010/2/12 wobidobi <[email protected]>

> Hey folks,
> I've got a question about Script::New(). It advertises that it can
> compile the script outside of a context (whereas Script::Compile()
> requires a context). Unfortunately, when I try it, I get an assertion
> failure, apparently because there is no top context.
>
> So does Script::New() actually work as advertised?
>
> Thanks,
>
> Andrew
>
> --
> 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