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

vm.js « lib - github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib/vm.js
blob: debdee18517e475b6536f8f8d24b21720f1a6009 (plain)
1
2
3
4
5
6
7
8
9
10
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;