From b5b83b210bb9873cd6b5052e5f5d260eb1f9d2f9 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Tue, 27 Jul 2010 20:36:58 -0700 Subject: [PATCH] Fix --debug-brk; hacky solution --- lib/module.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/module.js b/lib/module.js index 8e07bd73b0..3e005f4306 100644 --- a/lib/module.js +++ b/lib/module.js @@ -420,6 +420,7 @@ Module.prototype._compile = function (content, filename) { + "\n});"; var compiledWrapper = process.compile(wrapper, filename); + if (filename === process.argv[1]) process.checkBreak(); compiledWrapper.apply(self.exports, [self.exports, require, self, filename, dirname]); } else { self.exports = content;