Closed
Bug 1826930
Opened 6 months ago
Closed 5 months ago
PrettyPrint doesn't handle spread operator on array literal very well
Categories
(DevTools :: Debugger, defect, P3)
DevTools
Debugger
Tracking
(firefox114 fixed)
RESOLVED
FIXED
114 Branch
Tracking | Status | |
---|---|---|
firefox114 | --- | fixed |
People
(Reporter: nchevobbe, Assigned: nchevobbe)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
Steps to reproduce
- Navigate to
data:text/html,<meta charset=utf8><script>x = [1, ...[2,3]]</script>
- Open the debugger, select the source (under
(no domain)
) - Click the pretty print icon
Expected results
The inline script is prettified like:
x = [
1,
...[
2,
3
]
]
Actual results
The inline script is prettified like:
x = [
1,
...[2,
3]
]
Assignee | ||
Comment 1•6 months ago
|
||
Depends on D174948
Updated•6 months ago
|
Assignee: nobody → nchevobbe
Status: NEW → ASSIGNED
Assignee | ||
Updated•6 months ago
|
Severity: -- → S3
Priority: -- → P3
Pushed by nchevobbe@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/eacfc6bfd2ee [devtools] Handle array literals placed after spread operator. r=devtools-reviewers,ochameau.
![]() |
||
Comment 3•5 months ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 5 months ago
status-firefox114:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 114 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•