Skip to content

Commit

Permalink
bugfix: compatibility of node 0.10.x (fixed #16)
Browse files Browse the repository at this point in the history
  • Loading branch information
rogerz committed Apr 4, 2013
1 parent e8ff911 commit 4c0a58c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/underscore
Expand Up @@ -811,8 +811,8 @@ function getUserFn_js(expression, args, type) {
var code = expression;
try {
var script = VM.createScript(code);
var mod = new Module(process.cwd, module);
mod.paths = Module._nodeModulePaths(process.cwd);
var mod = new Module(process.cwd(), module);
mod.paths = Module._nodeModulePaths(process.cwd());
var _context = _.extend(globalFunctions, {
require: mod.require.bind(mod)
});
Expand Down

0 comments on commit 4c0a58c

Please sign in to comment.