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

Reply via email to