Closed Bug 1709619 Opened 3 years ago Closed 3 years ago

Handle private fields in getSymbols

Categories

(DevTools :: Debugger, task)

task

Tracking

(firefox90 fixed)

RESOLVED FIXED
90 Branch
Tracking Status
firefox90 --- fixed

People

(Reporter: nchevobbe, Assigned: nchevobbe)

References

Details

Attachments

(1 file)

getSymbols is used by the debugger to retrieve information on a given script that are then used in features (e.g. variable tooltip, function list, ...)

It doesn't handle private fields at all and this breaks some features

Symbols are information on the structure of a given script (assignments, functions,
expressions, …)

This patch handles scripts using private fields and fixes a few things in the debugger:

  • we get the full expression when hovering a private property access,
    a prerequisite to get the value of a private propery in the variable tooltip
    (which will be handled in Bug 1709567).
  • private methods now show up in the outline view under their proper name, and
    not anonymous. simplifyDisplayName was fixed as well to not strip the #
    at the start of the method name.

Tests are added to ensure this works as expected.

Depends on D114345

Pushed by nchevobbe@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/4042e167b1bd
[devtools] Handle private fields when retrieving script Symbols. r=bomsy.
Blocks: 1710417
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 90 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: