Field initialized to unnamed function should name the function

RESOLVED FIXED in Firefox 69

Status

()

defect
P1
normal
RESOLVED FIXED
2 months ago
2 months ago

People

(Reporter: khyperia, Assigned: khyperia)

Tracking

unspecified
mozilla69
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(firefox69 fixed)

Details

Attachments

(1 attachment)

class C {
    x = function(){}
}
assertEq(new C().x.name, "x");
Priority: -- → P1
Pushed by ahauck@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/ee890b30dbe3
Set anonymous function name in field initializer. r=jorendorff
Status: NEW → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla69
Assignee: nobody → khyperia
You need to log in before you can comment on or make changes to this bug.