Im sure this will sound strange, but I wanted to be able to capture the current 'state' in order to transfer the closure/context to a different scripting environment. The alternate context is not necessarily a v8 engine, but a running browser. I am using this technique to 'sandbox' certain code in a secondary process but then 'inject' code into the browser.
↧