Closed Bug 1552229 Opened 6 years ago Closed 5 years ago

Field key computation order is incorrect

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)

function f(x) {
    console.log(x);
}
class C{
    [f(1)](){}
    [f(2)] = "hi";
    [f(3)](){}
    [f(4)] = "hi";
}

currently prints 1,3,2,4, which is incorrect - it should be in order.

Priority: -- → P1
Pushed by ahauck@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/9953e8853243 Emit field keys in correct order. r=jorendorff
Flags: needinfo?(khyperia)
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla69
Regressions: 1553744
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: