Skip to content

Commit

Permalink
Fix felixge#60: define module.paths for sandbox
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Khrulev committed Sep 26, 2016
1 parent 6bb1191 commit 35e1ee6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/sandboxed_module.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ SandboxedModule.prototype._init = function(moduleId, trace, options) {

var module = new Module(this.filename, parent);
module.filename = this.filename;
module.paths = parent.paths;

this.module = module;

Expand Down

0 comments on commit 35e1ee6

Please sign in to comment.