Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't rely on process.env.hasOwnProperty #313

Merged
merged 1 commit into from
Oct 27, 2014
Merged

Don't rely on process.env.hasOwnProperty #313

merged 1 commit into from
Oct 27, 2014

Conversation

rochoa
Copy link

@rochoa rochoa commented Sep 24, 2014

Don't rely on process.env.hasOwnProperty as in Node <0.9.0 versions it doesn't work like a proper JS object.

$ node -v
v0.8.28
$ node
> typeof process.env
'object'
> typeof process.env.hasOwnProperty
'undefined'

See: nodejs/node-v0.x-archive#3521

…oesn't work like a proper JS object.

```
$ node -v
v0.8.28
$ node
> typeof process.env
'object'
> typeof process.env.hasOwnProperty
'undefined'
```

See: nodejs/node-v0.x-archive#3521
@rochoa
Copy link
Author

rochoa commented Sep 24, 2014

This was cherry-picked from rochoa:master

@springmeyer
Copy link
Member

Is it truly important to support node v0.8.x still?

@rochoa
Copy link
Author

rochoa commented Oct 27, 2014

I did the pull request when the README was still stating node v0.8.x was supported. As newer versions, read it as 3.0.0, are not supporting node v0.8.x it probably doesn't make sense to merge in master (#314) but I think it could be nice to have it 1.x series since some people still use v0.8.x. What do you think?

springmeyer pushed a commit that referenced this pull request Oct 27, 2014
Don't rely on process.env.hasOwnProperty
@springmeyer springmeyer merged commit 26e17ad into mapnik:1.x Oct 27, 2014
@springmeyer
Copy link
Member

okay, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants