Closed Bug 1780166 Opened 3 years ago Closed 3 years ago

esmify fails to migrate browser.js due to nodeFrom.comments being an invalid iterator

Categories

(Core :: XPConnect, defect, P1)

defect

Tracking

()

RESOLVED FIXED
104 Branch
Tracking Status
firefox-esr91 --- unaffected
firefox-esr102 --- unaffected
firefox102 --- unaffected
firefox103 --- unaffected
firefox104 --- fixed

People

(Reporter: standard8, Assigned: standard8)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

I missed this before - esmify is failing to migrate browser.js due to nodeFrom.comments being an invalid iterator. The line is:

nodeTo.comments = [...nodeTo.comments, ...nodeFrom.comments];

In this case, nodeFrom.comments is undefined, so we should skip the comment copying function in that case.

Set release status flags based on info from the regressing bug 1779927

Pushed by mbanner@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/108b7d5cd94f When esmify is moving comments, check that comments on the from node exist. r=arai
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 104 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: