mirror of https://github.com/lukechilds/node.git
Browse Source
Add a createScript function, and put stuff on exports instead of hiding it in exports.Script.v0.7.4-release
isaacs
14 years ago
committed by
Ryan Dahl
1 changed files with 8 additions and 0 deletions
@ -1,3 +1,11 @@ |
|||
var binding = process.binding('evals'); |
|||
|
|||
exports.Script = binding.Script; |
|||
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; |
|||
|
Loading…
Reference in new issue