@@ -86,7 +86,7 @@ process.inherits = function (ctor, superCtor) {
8686process . createChildProcess = function ( file , args , env ) {
8787 var child = new process . ChildProcess ( ) ;
8888 args = args || [ ] ;
89- env = env || process . ENV ;
89+ env = env || process . env ;
9090 var envPairs = [ ] ;
9191 for ( var key in env ) {
9292 if ( env . hasOwnProperty ( key ) ) {
@@ -493,7 +493,7 @@ GLOBAL.clearInterval = GLOBAL.clearTimeout;
493493// Modules
494494
495495var debugLevel = 0 ;
496- if ( "NODE_DEBUG" in process . ENV ) debugLevel = 1 ;
496+ if ( "NODE_DEBUG" in process . env ) debugLevel = 1 ;
497497
498498function debug ( x ) {
499499 if ( debugLevel > 0 ) {
@@ -744,12 +744,12 @@ var path = pathModule.exports;
744744process . paths = [ path . join ( process . installPrefix , "lib/node/libraries" )
745745 ] ;
746746
747- if ( process . ENV [ "HOME" ] ) {
748- process . paths . unshift ( path . join ( process . ENV [ "HOME" ] , ".node_libraries" ) ) ;
747+ if ( process . env [ "HOME" ] ) {
748+ process . paths . unshift ( path . join ( process . env [ "HOME" ] , ".node_libraries" ) ) ;
749749}
750750
751- if ( process . ENV [ "NODE_PATH" ] ) {
752- process . paths = process . ENV [ "NODE_PATH" ] . split ( ":" ) . concat ( process . paths ) ;
751+ if ( process . env [ "NODE_PATH" ] ) {
752+ process . paths = process . env [ "NODE_PATH" ] . split ( ":" ) . concat ( process . paths ) ;
753753}
754754
755755
@@ -968,19 +968,19 @@ process.exit = function (code) {
968968
969969var cwd = process . cwd ( ) ;
970970
971- // Make process.ARGV [0] and process.ARGV [1] into full paths.
972- if ( process . ARGV [ 0 ] . indexOf ( '/' ) > 0 ) {
973- process . ARGV [ 0 ] = path . join ( cwd , process . ARGV [ 0 ] ) ;
971+ // Make process.argv [0] and process.argv [1] into full paths.
972+ if ( process . argv [ 0 ] . indexOf ( '/' ) > 0 ) {
973+ process . argv [ 0 ] = path . join ( cwd , process . argv [ 0 ] ) ;
974974}
975975
976- if ( process . ARGV [ 1 ] . charAt ( 0 ) != "/" && ! ( / ^ h t t p : \/ \/ / ) . exec ( process . ARGV [ 1 ] ) ) {
977- process . ARGV [ 1 ] = path . join ( cwd , process . ARGV [ 1 ] ) ;
976+ if ( process . argv [ 1 ] . charAt ( 0 ) != "/" && ! ( / ^ h t t p : \/ \/ / ) . exec ( process . argv [ 1 ] ) ) {
977+ process . argv [ 1 ] = path . join ( cwd , process . argv [ 1 ] ) ;
978978}
979979
980980// Load the main module--the command line argument.
981981process . mainModule = createModule ( "." ) ;
982982var loadPromise = new events . Promise ( ) ;
983- process . mainModule . load ( process . ARGV [ 1 ] , loadPromise ) ;
983+ process . mainModule . load ( process . argv [ 1 ] , loadPromise ) ;
984984
985985// All our arguments are loaded. We've evaluated all of the scripts. We
986986// might even have created TCP servers. Now we enter the main eventloop. If
0 commit comments