summaryrefslogtreecommitdiff
path: root/lib/vm.js
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2011-03-30 10:06:19 -0700
committerRyan Dahl <ry@tinyclouds.org>2011-03-30 10:06:25 -0700
commit75db1995b6529cb71513a45299e2ba742e7afde9 (patch)
treeb8f548d0a7a0cb3ecbf2ab01ce9bb36dcc2127d4 /lib/vm.js
parent4cc0a0878fb0b31547c9a8d27e31f1daceb49524 (diff)
downloadnodejs-75db1995b6529cb71513a45299e2ba742e7afde9.tar.gz
nodejs-75db1995b6529cb71513a45299e2ba742e7afde9.tar.bz2
nodejs-75db1995b6529cb71513a45299e2ba742e7afde9.zip
Don't conflict with V8's Script class
Closes GH-203.
Diffstat (limited to 'lib/vm.js')
-rw-r--r--lib/vm.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/vm.js b/lib/vm.js
index 3ce71c9ca..d3348afac 100644
--- a/lib/vm.js
+++ b/lib/vm.js
@@ -21,12 +21,12 @@
var binding = process.binding('evals');
-exports.Script = binding.Script;
+exports.Script = binding.NodeScript;
exports.createScript = function(code, ctx, name) {
return new exports.Script(code, ctx, name);
};
-exports.createContext = binding.Script.createContext;
-exports.runInContext = binding.Script.runInContext;
-exports.runInThisContext = binding.Script.runInThisContext;
-exports.runInNewContext = binding.Script.runInNewContext;
+exports.createContext = binding.NodeScript.createContext;
+exports.runInContext = binding.NodeScript.runInContext;
+exports.runInThisContext = binding.NodeScript.runInThisContext;
+exports.runInNewContext = binding.NodeScript.runInNewContext;