Closed Bug 1552875 Opened 5 years ago Closed 5 years ago

Field initialized to unnamed function should name the function

Categories

(Core :: JavaScript Engine, defect, P1)

defect

Tracking

()

RESOLVED FIXED
mozilla69
Tracking Status
firefox69 --- fixed

People

(Reporter: khyperia, Assigned: khyperia)

References

Details

Attachments

(1 file)

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: 5 years 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.

Attachment

General

Created:
Updated:
Size: