Closed Bug 1773627 Opened 3 years ago Closed 3 years ago

parser-worker throws when handling expression with top-level await

Categories

(DevTools :: Console, defect, P3)

defect

Tracking

(firefox103 verified)

VERIFIED FIXED
103 Branch
Tracking Status
firefox103 --- verified

People

(Reporter: nchevobbe, Assigned: nchevobbe)

Details

Attachments

(1 file)

Steps to reproduce

  1. Open the console
  2. Evaluate
let a = await 0;
for (const v of []) { }
let b = 1;

Actual results

The expression is not mapped, and so triggers a SyntaxError
In the browser console, I can see the following error:

Error when mapping: […] ReferenceError: unknown node of type undefined with constructor "Array"

Assignee: nobody → nchevobbe
Status: NEW → ASSIGNED
Pushed by nchevobbe@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/8741f6258fd6 [devtools] Fix mapAwaitExpression on expression with for..of/in loops. r=bomsy.
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 103 Branch
QA Whiteboard: [qa-103b-p2]

I managed to reproduce this on a 2022-06-03 Nightly build on Ubuntu 22.04. Verified as fixed on Firefox 103.0b7(build ID: 20220710185935) and Nightly 104.0a1(build ID: 20220710190527) on Ubuntu 22.04, macOS 12 and Windows 10 64-bits.

Status: RESOLVED → VERIFIED
QA Whiteboard: [qa-103b-p2]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: