Skip to content

util: add internal assignFunctionName() function#57916

Closed
LiviaMedeiros wants to merge 3 commits intonodejs:mainfrom
LiviaMedeiros:util-internal-assign-function-name
Closed

util: add internal assignFunctionName() function#57916
LiviaMedeiros wants to merge 3 commits intonodejs:mainfrom
LiviaMedeiros:util-internal-assign-function-name

Conversation

@LiviaMedeiros
Copy link
Member

Extracted from: #57901

We have a lot of functions exposed to userspace or mentioned in stack traces that are anonymous or have something inherited like value as name; because it's not convenient to define it with name, or because the correct name is already taken by another variable, or because the name comes from a Symbol, or because of false positives from linter.

This helper function will simplify giving such functions a correct name.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author ready PRs that have at least one approval, no pending requests for changes, and a CI started. commit-queue-rebase Add this label to allow the Commit Queue to land a PR in several commits. lib / src Issues and PRs related to general changes in the lib or src directory. needs-ci PRs that need a full CI run. util Issues and PRs related to the built-in util module.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants