diff --git a/lib/module.js b/lib/module.js index 2f9005290a..b9067d24af 100644 --- a/lib/module.js +++ b/lib/module.js @@ -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; }