0
0
mirror of https://github.com/nodejs/node.git synced 2024-11-30 15:30:56 +01:00
nodejs/lib/vm.js
Ryan Dahl dd53ceebe4 lint
2010-12-01 20:59:06 -08:00

12 lines
399 B
JavaScript

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;