Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/rewire.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'playground.js')
-rw-r--r--playground.js9
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
+});