Permalink
Browse files

Merge pull request #25 from stonecobra/master

process.binding('evals') is now require('vm')
  • Loading branch information...
2 parents 7469a94 + 8562d24 commit e81af2caca0813353351032e9d28205f84c96ea4 Aleksander Williams committed Jun 23, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/server.js
View
4 lib/server.js
@@ -1,7 +1,7 @@
var path = require('path'),
parser = require('./parser'),
compiler = require('./compiler'),
- Script = process.binding('evals').Script;
+ vm = require('vm');
require.paths.unshift(path.join(__dirname, '..'));
@@ -10,7 +10,7 @@ module.exports = function(dust) {
dust.compile = compiler.compile;
dust.loadSource = function(source, path) {
- return Script.runInNewContext(source, {dust: dust}, path);
+ return vm.runInNewContext(source, {dust: dust}, path);
};
dust.nextTick = process.nextTick;

0 comments on commit e81af2c

Please sign in to comment.