|
|
@ -376,12 +376,9 @@ Module.prototype._compile = function (content, filename) { |
|
|
|
+ content |
|
|
|
+ "\n});"; |
|
|
|
|
|
|
|
var compiledWrapper = process.compile(wrapper, filename); |
|
|
|
var dirName = path.dirname(filename); |
|
|
|
if (filename === process.argv[1]) { |
|
|
|
process.checkBreak(); |
|
|
|
} |
|
|
|
compiledWrapper.apply(self.exports, [self.exports, require, self, filename, dirName]); |
|
|
|
var compiledWrapper = process.compile(wrapper, filename); |
|
|
|
var dirName = path.dirname(filename); |
|
|
|
compiledWrapper.apply(self.exports, [self.exports, require, self, filename, dirName]); |
|
|
|
} else { |
|
|
|
self.exports = content; |
|
|
|
} |
|
|
|