Permalink
Browse files

update to support evals moving to require('vm')

  • Loading branch information...
1 parent 7469a94 commit 8562d2471fe804c2fb4a85ab3280b2945ec79d7e @stonecobra committed Jun 19, 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 8562d24

Please sign in to comment.