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

process.env.<something> = null unexpected results #4920

Closed
evanlucas opened this issue Jan 27, 2016 · 2 comments
Closed

process.env.<something> = null unexpected results #4920

evanlucas opened this issue Jan 27, 2016 · 2 comments
Labels
process Issues and PRs related to the process subsystem.

Comments

@evanlucas
Copy link
Contributor

The following produce unexpected results:

process.env.THING = null
process.env.THING // => 'null'

process.env.THING = undefined
process.env.THING // => 'undefined'

Should there be better docs on setting process.env to null/undefined?

@cjihrig
Copy link
Contributor

cjihrig commented Jan 28, 2016

Definitely seems reasonable to me to mention the implicit toString(). Might be worth adding a note on how to delete a value too.

@mscdex mscdex added the process Issues and PRs related to the process subsystem. label Jan 28, 2016
@evanlucas
Copy link
Contributor Author

Notes were added to the docs in 8ff9b56

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
process Issues and PRs related to the process subsystem.
Projects
None yet
Development

No branches or pull requests

3 participants