Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Remove process.ENV
Browse files Browse the repository at this point in the history
  • Loading branch information
ry committed Oct 11, 2011
1 parent 83fce75 commit 7085a04
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/node.cc
Expand Up @@ -2166,18 +2166,6 @@ Handle<Object> SetupProcessObject(int argc, char *argv[]) {
Local<Object> env = envTemplate->NewInstance();
process->Set(String::NewSymbol("env"), env);

// create process.ENV
// TODO: remove me at some point.
Local<ObjectTemplate> ENVTemplate = ObjectTemplate::New();
ENVTemplate->SetNamedPropertyHandler(EnvGetterWarn,
EnvSetter,
EnvQuery,
EnvDeleter,
EnvEnumerator,
Undefined());
Local<Object> ENV = ENVTemplate->NewInstance();
process->Set(String::NewSymbol("ENV"), ENV);

process->Set(String::NewSymbol("pid"), Integer::New(getpid()));
process->Set(String::NewSymbol("features"), GetFeatures());

Expand Down

1 comment on commit 7085a04

@bobrik
Copy link

@bobrik bobrik commented on 7085a04 Oct 12, 2011

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe you should add it here?

Please sign in to comment.