You must be in a context in order to do anything. Script::New is context-independent in a way that a script created in one context can be executed in other context.
O. 2010/7/14 s.sawada <[email protected]> > Is it bug? > > // sample code > int main(int argc, char* argv[]) > { > v8::HandleScope handle_scope; > > v8::Handle<v8::String> source = v8::String::New("\val = 1;\n\"); > > // crash > v8::Handle<v8::Script> script = v8::Script::New(source); > > return 0; > } > > v8::Script::New is context-independent. > But when I use it out of context, this program crashes. > Do I need context? > > -- > 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
