diff options
Diffstat (limited to 'playground.js')
-rw-r--r-- | playground.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/playground.js b/playground.js new file mode 100644 index 0000000..2ec9989 --- /dev/null +++ b/playground.js @@ -0,0 +1,9 @@ +var vm = require("vm");
+
+var mine = {};
+
+mine.runInNewContext = vm.runInNewContext;
+
+mine.runInNewContext("console.log('test');", {
+ "console": console
+});
|