Closed
Bug 1906587
Opened 1 year ago
Closed 1 year ago
Preview tooltip doesn't work on expression `this[x].y`
Categories
(DevTools :: Debugger, defect, P2)
DevTools
Debugger
Tracking
(firefox130 fixed)
RESOLVED
FIXED
130 Branch
| Tracking | Status | |
|---|---|---|
| firefox130 | --- | fixed |
People
(Reporter: nchevobbe, Assigned: nchevobbe)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
|
48 bytes,
text/x-phabricator-request
|
Details |
Steps to reproduce
- Open the console
- Evaluate the following expression
new(class {
constructor() {
this.x = {
y: 42
};
const prop = "x";
this[prop].y;
debugger;
}
});
- Once the debugger is opened, hover
yin thethis[prop].yline
Expected results
The preview tooltip is displayed, with the expected value, 42
Actual results
The preview tooltip isn't displayed.
In stdout, I can see the following error: Preview for <this.[name].value> threw a SyntaxError
Notice the . before [name], which explains the syntax error
Comment 1•1 year ago
|
||
Let's at least add a test here to make sure this gets fixed when migrating to codemirror.
| Assignee | ||
Comment 2•1 year ago
|
||
Updated•1 year ago
|
Assignee: nobody → nchevobbe
Status: NEW → ASSIGNED
Pushed by nchevobbe@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/e7ab50577b53
[devtools] Fix preview for this property access with bracket notation. r=devtools-reviewers,ochameau.
Comment 4•1 year ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
status-firefox130:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 130 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•