mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
doc: edit text for DEP0104
Make the deprecation message a bit clear and concise. PR-URL: https://github.com/nodejs/node/pull/20519 Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
This commit is contained in:
1 parent
0e8805186f
commit
67e44bf588
1 file changed
+5
-5
@@ -950,11 +950,11 @@ methods in particular can be replaced by using [`util.types`][].
|
||||
|
||||
Type: Documentation-only (supports [`--pending-deprecation`][])
|
||||
|
||||
Currently when assigning a property to [`process.env`][], the assigned value is
|
||||
implicitly converted to a string if it is not a string. This behavior is
|
||||
deprecated if the assigned value is not a string, boolean, or number. In the
|
||||
future, such assignment may result in a thrown error. Please convert the
|
||||
property to a string before assigning it to `process.env`.
|
||||
When assigning a non-string property to [`process.env`][], the assigned value is
|
||||
implicitly converted to a string. This behavior is deprecated if the assigned
|
||||
value is not a string, boolean, or number. In the future, such assignment may
|
||||
result in a thrown error. Please convert the property to a string before
|
||||
assigning it to `process.env`.
|
||||
|
||||
<a id="DEP0105"></a>
|
||||
### DEP0105: decipher.finaltol
|
||||
|
||||
Reference in new issue
Block a user