How can i compile the javascript expression using v8.net

Sep 23, 2013 at 1:26 PM
In v8 c++ I can pre-complie the javascript and then execute the pre-compiled script multiple time .

In V8.net How can i compile the script one time and execute it multiple times . It would save my compilation time everytime i call execute

Thanks
Rishikesh
Coordinator
Sep 23, 2013 at 1:39 PM
Hi rishi12! :)

Thanks for the request - I just never got around to this yet (thought it's easy enough). You can track your request here:

https://v8dotnet.codeplex.com/workitem/1288

I'll try to get a quick dev-branch build for you.

Thanks. ;)
Sep 23, 2013 at 1:58 PM
Thanks a lot James for help
Coordinator
Sep 23, 2013 at 5:40 PM
Ok, I've put this in for you - just download the development branch binaries. Use "Handle hScript = {V8Engine}.Compile(...);" and "{V8Engine}.Execute(hScript)". ;)
Sep 24, 2013 at 1:01 PM
Thanks , It Worked.