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

Issue with "Function.prototype.displayName": Firefox's usage of displayName has changed #20293

Closed
Josh-Cena opened this issue Sep 4, 2022 · 0 comments · Fixed by #20297
Closed
Labels
Content:JS JavaScript docs help wanted If you know something about this topic, we would love your help!

Comments

@Josh-Cena
Copy link
Member

Josh-Cena commented Sep 4, 2022

MDN URL

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/displayName

What specific section or headline is this issue about?

No response

What information was incorrect, unhelpful, or incomplete?

By entering the following in a console, it should display as something like function My Function():

const a = function () {};
a.displayName = 'My Function';

a; // "function My Function()"

What did you expect to see?

In recent FF versions, it only shows function Function(). My guess is that it's truncated to the last valid identifier, but I'm not sure.

Do you have any supporting links, references, or citations?

Output in FF 104:

image

Do you have anything more you want to share?

No response

MDN metadata

Page report details
@github-actions github-actions bot added Content:JS JavaScript docs needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. labels Sep 4, 2022
@Josh-Cena Josh-Cena changed the title Issue with "Function.prototype.displayName": Firefox doesn't use this anymore? Issue with "Function.prototype.displayName": Firefox's usage of displayName has changed Sep 4, 2022
@Josh-Cena Josh-Cena added help wanted If you know something about this topic, we would love your help! and removed needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. labels Sep 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Content:JS JavaScript docs help wanted If you know something about this topic, we would love your help!
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant