Created
August 17, 2010 22:07
-
-
Save FrankGrimm/532322 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 Script = process.binding('evals').Script; | |
| var stdin = process.openStdin(); | |
| stdin.setEncoding('utf8'); | |
| var scriptCode = ''; | |
| stdin.on('data', function (chunk) { | |
| scriptCode += chunk; | |
| }); | |
| stdin.on('end', function () { | |
| Script.runInThisContext(scriptCode); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment