Skip to content
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

Assignment operators with a function expression should give name to the function #1599

Closed
andreabergia opened this issue Aug 30, 2024 · 3 comments

Comments

@andreabergia
Copy link
Contributor

When assigning a variable to an anonymous function, that function should get its name from the variable. Example:

test = function() {}
test.name

should be test. This should work with normal functions and with lambda functions (and with classes, one day).
It should also work with operators such as ||= or &&|=.

@p-bakker
Copy link
Collaborator

Think this one duplicates what is already in #1297, which has more details to it. Ok with me closing this one?

@andreabergia
Copy link
Contributor Author

Think this one duplicates what is already in #1297, which has more details to it. Ok with me closing this one?

Sure, go ahead

@andreabergia andreabergia closed this as not planned Won't fix, can't repro, duplicate, stale Aug 30, 2024
@p-bakker
Copy link
Collaborator

Duplicates #1297

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants