-
-
Notifications
You must be signed in to change notification settings - Fork 37.1k
Debugging: name every function #8913
Copy link
Copy link
Closed
Labels
good first issueIssues that are suitable for first-time contributors.Issues that are suitable for first-time contributors.help wantedIssues that need assistance from volunteers or PRs that need help to proceed.Issues that need assistance from volunteers or PRs that need help to proceed.httpIssues and PRs related to the http subsystem.Issues and PRs related to the http subsystem.
Description
Activity
Metadata
Metadata
Assignees
Labels
good first issueIssues that are suitable for first-time contributors.Issues that are suitable for first-time contributors.help wantedIssues that need assistance from volunteers or PRs that need help to proceed.Issues that need assistance from volunteers or PRs that need help to proceed.httpIssues and PRs related to the http subsystem.Issues and PRs related to the http subsystem.
There are too many anonymous functions in the source code which makes heap debugging frustrating
This
once('response')listener ( https://github.com/nodejs/node/blob/master/lib/_http_client.js#L235-L237 ) is anonymous.When I try to debug why I am leaking
responselisteners in a heap snapshotI see that the
listenerin theonceclosure isfunction () {}which gives me no information. I strongly suspect that it's theabortlistener but i have no evidence for it.There are many, many, many anonymous functions in node core, there should be zero.