-
-
Notifications
You must be signed in to change notification settings - Fork 33k
util: remove outdated TODO comment #59760
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
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #59760 +/- ##
==========================================
- Coverage 89.95% 89.95% -0.01%
==========================================
Files 667 667
Lines 196813 196812 -1
Branches 38425 38422 -3
==========================================
- Hits 177038 177036 -2
+ Misses 12200 12199 -1
- Partials 7575 7577 +2
🚀 New features to boost your workflow:
|
I think at this point, I would prefer to just leave it as-is and just remove that TODO - I feel that changing it could otherwise break more than I expected, based on some simple GitHub searches. |
I’ll update the PR to just remove the TODO comment. |
This comment was marked as outdated.
This comment was marked as outdated.
Landed in 6478dd0...3837993 |
PR-URL: #59760 Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]>
PR-URL: #59760 Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]>
Update
deprecated()
inlib/internal/util.js
to checkgetOptionValue('--no-deprecation')
in addition toprocess.noDeprecation
.No test added yet. Suggested tests:
process.noDeprecation
is true.--no-deprecation
CLI flag is set.Feedback on how to best add these tests is welcome.
->
This PR only removes the TODO comment in lib/internal/util.js
that suggested replacing process.noDeprecation with
getOptionValue('--no-deprecation').
As noted in review, changing the behavior could break more than expected,
so we keep the current logic as-is and just clean up the comment.