@@ -86,7 +86,7 @@ process.inherits = function (ctor, superCtor) {
86
86
process . createChildProcess = function ( file , args , env ) {
87
87
var child = new process . ChildProcess ( ) ;
88
88
args = args || [ ] ;
89
- env = env || process . ENV ;
89
+ env = env || process . env ;
90
90
var envPairs = [ ] ;
91
91
for ( var key in env ) {
92
92
if ( env . hasOwnProperty ( key ) ) {
@@ -493,7 +493,7 @@ GLOBAL.clearInterval = GLOBAL.clearTimeout;
493
493
// Modules
494
494
495
495
var debugLevel = 0 ;
496
- if ( "NODE_DEBUG" in process . ENV ) debugLevel = 1 ;
496
+ if ( "NODE_DEBUG" in process . env ) debugLevel = 1 ;
497
497
498
498
function debug ( x ) {
499
499
if ( debugLevel > 0 ) {
@@ -744,12 +744,12 @@ var path = pathModule.exports;
744
744
process . paths = [ path . join ( process . installPrefix , "lib/node/libraries" )
745
745
] ;
746
746
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" ) ) ;
749
749
}
750
750
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 ) ;
753
753
}
754
754
755
755
@@ -968,19 +968,19 @@ process.exit = function (code) {
968
968
969
969
var cwd = process . cwd ( ) ;
970
970
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 ] ) ;
974
974
}
975
975
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 ] ) ;
978
978
}
979
979
980
980
// Load the main module--the command line argument.
981
981
process . mainModule = createModule ( "." ) ;
982
982
var loadPromise = new events . Promise ( ) ;
983
- process . mainModule . load ( process . ARGV [ 1 ] , loadPromise ) ;
983
+ process . mainModule . load ( process . argv [ 1 ] , loadPromise ) ;
984
984
985
985
// All our arguments are loaded. We've evaluated all of the scripts. We
986
986
// might even have created TCP servers. Now we enter the main eventloop. If
0 commit comments