Hi,

$ node
> noProto = Object.create(null);
{}
> noProto instanceof Object
false

`process.env instanceof Object` should be `false` 
if it has no prototype.


On Fri, 22 Jun 2012 17:04:02 -0700, Mikeal Rogers <[email protected]> 
wrote:

> process.env should be a real js object, or at least act like one.
> 
> if we have to i'd say we make process.env a getter and build a real js object 
> from the C++ stub that is currently there.
> 
> people should not be expected to know or distinguish between normal js 
> objects and crazy things from C++.
> 
> -Mikeal
> 
> On Jun 22, 2012, at June 22, 20124:58 PM, Ben Noordhuis wrote:
> 
> > On Fri, Jun 22, 2012 at 7:22 PM, Bert Belder <[email protected]> wrote:
> >> 
> >> 
> >> On Friday, June 22, 2012 6:27:49 PM UTC+2, Ben Noordhuis wrote:
> >>> 
> >>> `process.env` is not a real JS object. it's a stub for a chunk of C++
> >>> code. But by all means file an issue if you feel strongly about this,
> >>> we can probably fix it.
> >> 
> >> 
> >> I don't agree. People shouldn't rely on prototype methods of objects that
> >> are used as hash tables. Same story for the http headers object, parsed
> >> querystring arguments etc.
> > 
> > Apparently Bert feels strongly about this. :-)
> > 
> > -- 
> > Job Board: http://jobs.nodejs.org/
> > Posting guidelines: 
> > https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> > You received this message because you are subscribed to the Google
> > Groups "nodejs" group.
> > To post to this group, send email to [email protected]
> > To unsubscribe from this group, send email to
> > [email protected]
> > For more options, visit this group at
> > http://groups.google.com/group/nodejs?hl=en?hl=en
> 
> -- 
> Job Board: http://jobs.nodejs.org/
> Posting guidelines: 
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en



-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to