Is there anyway to do this? I want to create a JavaScript application that can "resume" application from the last checkpoint e.g.
//code.js
var abc = 13;
checkpoint("myLocalStorage");
alert(abc);
the checkpoint function will store every info about the execution such that in the future execution can be resumed right where it was left of as such:
//resume.js
resume("myLocalStorage");
This would be very helpful for executing long script / script with huge loops - I'm not talking about executing some tiny script that preloads images or do some funny animations. I'm talking about using JavaScript as a real number crunching tool where execution can take a long time and demands huge computing power. In these context you can see how useful execution checkpointing could be!
I suppose such thing doesn't exist for JavaScript yet, but if anyone ever comes close to something that remotely resembles it I would still be very grateful.