removing another process.binding() private snafu

This commit is contained in:
Jeremy Ashkenas
2011-11-08 15:58:48 -05:00
parent 5ae4e06770
commit 426f51db21
2 changed files with 3 additions and 8 deletions

View File

@@ -64,9 +64,7 @@ exports.run = (code, options) ->
mainModule.moduleCache and= {}
# Assign paths for node_modules loading
if process.binding('natives').module
{Module} = require 'module'
mainModule.paths = Module._nodeModulePaths path.dirname options.filename
mainModule.paths = require('module')._nodeModulePaths path.dirname options.filename
# Compile.
if path.extname(mainModule.filename) isnt '.coffee' or require.extensions