This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Fix --debug-brk; hacky solution

  • Loading branch information...
1 parent 505178d commit b5b83b210bb9873cd6b5052e5f5d260eb1f9d2f9 @ry ry committed Jul 28, 2010
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/module.js
View
@@ -420,6 +420,7 @@ Module.prototype._compile = function (content, filename) {
+ "\n});";
var compiledWrapper = process.compile(wrapper, filename);
+ if (filename === process.argv[1]) process.checkBreak();
@ELLIOTTCABLE

ELLIOTTCABLE Jul 28, 2010

We were having a discussion about this exact problem in IRC at the same time as you were creating an issue for it, heh.

compiledWrapper.apply(self.exports, [self.exports, require, self, filename, dirname]);
} else {
self.exports = content;

0 comments on commit b5b83b2

Please sign in to comment.