Remove target argument from node.Module#newChild.
authorRyan Dahl <ry@tinyclouds.org>
Mon, 5 Oct 2009 18:35:05 +0000 (20:35 +0200)
committerRyan Dahl <ry@tinyclouds.org>
Mon, 5 Oct 2009 18:35:05 +0000 (20:35 +0200)
src/node.js

index 7de9a91..d8a721e 100644 (file)
@@ -253,7 +253,7 @@ node.Module.prototype.loadScript = function (loadPromise) {
     content = content.replace(/^\#\!.*/, '');
 
     function requireAsync (url) {
-      return self.newChild(url, {});
+      return self.newChild(url);
     }
 
     function require (url) {
@@ -273,8 +273,8 @@ node.Module.prototype.loadScript = function (loadPromise) {
   });
 };
 
-node.Module.prototype.newChild = function (path, target) {
-  return node.loadModule(path, target, this);
+node.Module.prototype.newChild = function (path) {
+  return node.loadModule(path, {}, this);
 };
 
 node.Module.prototype.waitChildrenLoad = function (callback) {