Created
February 15, 2013 19:04
-
-
Save geNAZt/4962552 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var contextify = require('contextify'); | |
ctx = contextify({console: console, setTimeout: setTimeout}); | |
ctx.run("setTimeout(function() { now = 1; }, 1000);"); | |
ctx.on("codeFinished", function() { //The context / vm tells me the code in it has finished computing | |
//ctx is now the state of the global object at the time the code has finished computing | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment