Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #25 from stonecobra/master

process.binding('evals') is now require('vm')
  • Loading branch information...
commit e81af2caca0813353351032e9d28205f84c96ea4 2 parents 7469a94 + 8562d24
Aleksander Williams authored
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;
Please sign in to comment.
Something went wrong with that request. Please try again.