> Local<Context> lcontext = pcontext;
It should be
Local<Context> lcontext = Local<Context>::New(pcontext);
--
Vyacheslav Egorov
> --
> v8-users mailing list
> v8-u...@googlegroups.com
> http://groups.google.com/group/v8-users
v8::Persistent <v8::Context> context = v8::Context::New( NULL, orderTemplate );
v8::Handle <v8::Script> script = v8::Script::Compile( source );
v8::Persistent <v8::Script > per_script = v8::Persistent<v8::Script>::New(script );
I store the persistent handle-> context and per_script. Later in my allication, i retrive the above and try to run the script as follows:
context->Enter();
per_script->Run();
context->Exit();
The above three statements try to retrive the object from the persistent handle and then run the script. This has a lot of overhead in terms of performance (Time taken to run the function) . How would this problem be solved?