Browse Source

Fix --debug-brk; hacky solution

v0.7.4-release
Ryan Dahl 15 years ago
parent
commit
b5b83b210b
  1. 1
      lib/module.js

1
lib/module.js

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

Loading…
Cancel
Save