Is there a way to access the script frame stack?

Feb 4, 2014 at 3:35 AM
I am looking to access the variables within the local scope of a script frame (on the stack?). I haven't found a way to do this with ClearScript yet. Does anyone know if this is possible?

For ClearScript devs, here is a post on possibly how to implement it:

Thanks a bunch!
Feb 4, 2014 at 7:49 PM
Hi joshrmt,

This is currently not possible and is rather unlikely as V8 has no public APIs that would enable it (the code on StackOverflow uses internal interfaces), but just in case, can you describe your scenario? Are you developing a debugger?

Feb 6, 2014 at 12:08 PM
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.