Skip to content

Commit

Permalink
Merge pull request #25 from stonecobra/master
Browse files Browse the repository at this point in the history
process.binding('evals') is now require('vm')
  • Loading branch information
Aleksander Williams committed Jun 23, 2011
2 parents 7469a94 + 8562d24 commit e81af2c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/server.js
Original file line number Original file line Diff line number Diff line change
@@ -1,7 +1,7 @@
var path = require('path'), var path = require('path'),
parser = require('./parser'), parser = require('./parser'),
compiler = require('./compiler'), compiler = require('./compiler'),
Script = process.binding('evals').Script; vm = require('vm');


require.paths.unshift(path.join(__dirname, '..')); require.paths.unshift(path.join(__dirname, '..'));


Expand All @@ -10,7 +10,7 @@ module.exports = function(dust) {
dust.compile = compiler.compile; dust.compile = compiler.compile;


dust.loadSource = function(source, path) { dust.loadSource = function(source, path) {
return Script.runInNewContext(source, {dust: dust}, path); return vm.runInNewContext(source, {dust: dust}, path);
}; };


dust.nextTick = process.nextTick; dust.nextTick = process.nextTick;
Expand Down

0 comments on commit e81af2c

Please sign in to comment.