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)
DevTools
Console
Tracking
(firefox103 verified)
VERIFIED
FIXED
103 Branch
Tracking | Status | |
---|---|---|
firefox103 | --- | verified |
People
(Reporter: nchevobbe, Assigned: nchevobbe)
Details
Attachments
(1 file)
Steps to reproduce
- Open the console
- 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 | ||
Comment 1•3 years ago
|
||
Depends on D148806
Updated•3 years ago
|
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.
Comment 3•3 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
status-firefox103:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 103 Branch
Updated•3 years ago
|
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.
You need to log in
before you can comment on or make changes to this bug.
Description
•