-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
adds deprication warning to errname() #23597
Conversation
### DEP0XXX: process.binding('uv').errname() private api | ||
|
||
Type: Documentation-only (supports [`--pending-deprecation`][]) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to whomever lands this: should add a bit more detail here on landing
src/uv.cc
Outdated
@@ -43,6 +43,15 @@ using v8::Value; | |||
// lib/util.getSystemErrorName() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess you can remove this TODO comment, if you like?
doc/api/deprecations.md
Outdated
@@ -2230,6 +2230,12 @@ like `dns.lookup(false)` due to backward compatibility. | |||
This behavior is undocumented and is thought to be unused in real world apps. | |||
It will become an error in future versions of Node.js. | |||
|
|||
<a id="DEP0XXX"></a> | |||
### DEP0XXX: process.binding('uv').errname() private api |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Possible nit for a lander: api -> API
|
||
Type: Documentation-only (supports [`--pending-deprecation`][]) | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Possible nit for a lander: extra empty line.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vsemozhetbyt I’d count that under @jasnell’s comment. We want a description here rather than removing empty lines :)
6050294
to
44c492b
Compare
44c492b
to
746b9b2
Compare
👍, but the commit message should be updated:
The first line of the commit message should have a subsystem prefix and look something like |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
The commit message could be fixed on landing.
@@ -842,6 +842,11 @@ class Environment { | |||
emit_env_nonstring_warning_ = false; | |||
return current_value; | |||
} | |||
inline bool EmitErrNameWarning() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: One empty line above this would be more readable.
One more note for a lander: |
Landed in 91fe7e5, with nits addressed while landing Thanks for the contribution! 🎉 (If you're interested in other possible contributions to Node.js but don't have a good idea of where to start looking, some ideas are posted at https://www.nodetodo.org/next-steps/.) |
PR-URL: #23597 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
PR-URL: #23597 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
adds deprecations warning to errname()
@jasnell
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes