diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2011-03-30 10:06:19 -0700 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2011-03-30 10:06:25 -0700 |
commit | 75db1995b6529cb71513a45299e2ba742e7afde9 (patch) | |
tree | b8f548d0a7a0cb3ecbf2ab01ce9bb36dcc2127d4 /lib/vm.js | |
parent | 4cc0a0878fb0b31547c9a8d27e31f1daceb49524 (diff) | |
download | nodejs-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.js | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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; |