Clean up indention on module compile
authorRyan Dahl <ry@tinyclouds.org>
Wed, 30 Jun 2010 21:30:35 +0000 (14:30 -0700)
committerRyan Dahl <ry@tinyclouds.org>
Wed, 30 Jun 2010 21:30:37 +0000 (14:30 -0700)
Remove strange code artifact

lib/module.js

index 2f90052..b9067d2 100644 (file)
@@ -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;
   }