Browse Source

Clean up indention on module compile

Remove strange code artifact
v0.7.4-release
Ryan Dahl 15 years ago
parent
commit
ce8c30c9de
  1. 9
      lib/module.js

9
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;
}

Loading…
Cancel
Save