variable tooltip is not displayed when hovering variable while paused in script using private fields
Categories
(DevTools :: Debugger, defect, P1)
Tracking
(firefox90 verified)
Tracking | Status | |
---|---|---|
firefox90 | --- | verified |
People
(Reporter: nchevobbe, Assigned: nchevobbe)
References
Details
Attachments
(1 file)
Steps to reproduce
- Go to https://firefox-devtools-private-fields.glitch.me/
- Open the debugger
- On the page, click the
Create instance and pause
button, it should pauses inscript.js
- In
getSecreatAndSalt
, hover thecreationDate
variable on line 17
Expected results
The variable tooltip shows the value of creationDate
Actual results
The variable tooltip does not show up
An error is displayed in the terminal:
new SyntaxError("This experimental syntax requires enabling one of the following parser plugin(s): 'classPrivateProperties, classPrivateMethods' (4:9)", "resource://devtools/client/debugger/dist/parser-worker.js", 17120)
We have to update the babel configuration to add support for private fields.
Note that inline variable preview does not work either, and we should check if fixing this bug resolves the issue, and if not, file another specific bug
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Comment 1•4 years ago
|
||
This patch adds 2 babel plugin so we can parse such scripts.
Assignee | ||
Updated•4 years ago
|
Comment 3•4 years ago
|
||
bugherder |
Updated•4 years ago
|
Comment 4•4 years ago
|
||
I've reproduced this bug on macOS 10.5, using the steps from comment 0, on an affected Nightly build (2021-05-05).
The bug is verified as fixed on Beta 90.0b4, across platforms: Win 10 x64, macOS 10.15 and Ubuntu 18.04 x64.
Description
•