From 51d8131d34d1f78937e54dc33b5e954718212632 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Legan=C3=A9s=20Combarro?= Date: Tue, 31 Mar 2015 12:59:57 +0200 Subject: [PATCH] Removed module.parent check Currently checking for module.parent or other things is not used anymore since package.json provides mechanism for a package work at the same time as a library and as an executable, so this checks similar to the Python ones are not needed anymore, and also allow to NodeOS env.js to use less memory. --- nsh.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/nsh.js b/nsh.js index b4007ad..d02bd23 100755 --- a/nsh.js +++ b/nsh.js @@ -185,6 +185,4 @@ function prompt(){ } // Main method -if(!module.parent){ - prompt(); -} +prompt();