-
-
Notifications
You must be signed in to change notification settings - Fork 31.5k
http,https: give names to anonymous or misnamed functions #58180
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
base: main
Are you sure you want to change the base?
Conversation
Affected functions: - http.OutgoingMessage.prototype.cork - http.OutgoingMessage.prototype.uncork - http.Server.prototype.close - http.Server.prototype.closeAllConnections - http.Server.prototype.closeIdleConnections - http.Server.prototype[Symbol.asyncDispose] - http.Server.prototype[nodejs.rejection] - http.validateHeaderName - http.validateHeaderValue - https.Server.prototype.closeAllConnections - https.Server.prototype.closeIdleConnections - https.Server.prototype.close
Review requested:
|
Server.prototype[EE.captureRejectionSymbol] = | ||
assignFunctionName(EE.captureRejectionSymbol, function(err, event, ...args) { |
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.
Linter seems to be happy with this but better suggestions would be appreciated.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #58180 +/- ##
==========================================
- Coverage 90.17% 90.15% -0.03%
==========================================
Files 630 630
Lines 186503 186759 +256
Branches 36618 36654 +36
==========================================
+ Hits 168188 168365 +177
- Misses 11120 11192 +72
- Partials 7195 7202 +7
🚀 New features to boost your workflow:
|
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
Before this change, the following functions had either empty string or
wrappedFn
as function name: