diff options
author | Timothy Gu <timothygu99@gmail.com> | 2018-02-25 13:42:10 -0800 |
---|---|---|
committer | Timothy Gu <timothygu99@gmail.com> | 2018-03-07 10:38:58 -0800 |
commit | 5826fe4e79e96fe5ba47ec349790af107b9d10bb (patch) | |
tree | 8a5c1d32f60319280e87a882b21630c8c6ec8878 /doc/api/process.md | |
parent | c9b4de55c061ecb8d64cda9e36821c21f8150925 (diff) | |
download | android-node-v8-5826fe4e79e96fe5ba47ec349790af107b9d10bb.tar.gz android-node-v8-5826fe4e79e96fe5ba47ec349790af107b9d10bb.tar.bz2 android-node-v8-5826fe4e79e96fe5ba47ec349790af107b9d10bb.zip |
process: doc-only deprecate non-string env value
PR-URL: https://github.com/nodejs/node/pull/18990
Refs: https://github.com/nodejs/node/pull/15089
Refs: https://github.com/nodejs/node/pull/18158
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Diffstat (limited to 'doc/api/process.md')
-rw-r--r-- | doc/api/process.md | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/doc/api/process.md b/doc/api/process.md index 2bd7a119bf..e89e5c0281 100644 --- a/doc/api/process.md +++ b/doc/api/process.md @@ -836,6 +836,10 @@ emitMyWarning(); ## process.env <!-- YAML added: v0.1.27 +changes: + - version: REPLACEME + pr-url: https://github.com/nodejs/node/pull/18990 + description: Implicit conversion of variable value to string is deprecated. --> * {Object} @@ -877,7 +881,8 @@ console.log(process.env.foo); ``` Assigning a property on `process.env` will implicitly convert the value -to a string. +to a string. **This behavior is deprecated.** Future versions of Node.js may +throw an error when the value is not a string, number, or boolean. Example: |