From: Ryan Dahl Date: Mon, 5 Oct 2009 18:35:05 +0000 (+0200) Subject: Remove target argument from node.Module#newChild. X-Git-Tag: v0.1.14~35 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d703813c27fbef30a3f9c7a63189365cc514db01;p=platform%2Fupstream%2Fnodejs.git Remove target argument from node.Module#newChild. --- diff --git a/src/node.js b/src/node.js index 7de9a91..d8a721e 100644 --- a/src/node.js +++ b/src/node.js @@ -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) {