This project has moved. For the latest updates, please go here.

compile javascript script to bytecode and send this bytecode to the client

Jul 21, 2015 at 9:15 PM
Edited Jul 21, 2015 at 9:15 PM
In order to speed up an eval(...) call at client side, I would like to compile the script to bytecode on the server before posting the dynamically generated script back to the client.
How to retrieve the compiled bytecode from Jurassic engine as string, rather than executing it on the server? I cannot find this in the docs, can somebody please assist?
Coordinator
Aug 1, 2015 at 1:02 PM
You can't retrieve the compiled bytecode as a string, because it's not a string. While it is possible to package up the MSIL as a DLL and send that, it's a difficult problem to solve because there can be inter-DLL references. Sorry!