Bug 235859

Summary: Web Inspector: Support ES2022 Private Methods
Product: WebKit Reporter: Rob Palmer <rob.palmer2>
Component: Web InspectorAssignee: Patrick Angle <pangle>
Status: NEW    
Severity: Normal CC: hi, inspector-bugzilla-changes, pangle, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari Technology Preview   
Hardware: All   
OS: All   
See Also: https://bugs.webkit.org/show_bug.cgi?id=254961
Attachments:
Description Flags
Private fields and methods are missing none

Rob Palmer
Reported 2022-01-29 08:17:53 PST
Created attachment 450325 [details] Private fields and methods are missing The Web Inspector should support showing ES2022 class private fields, methods & accessors when inspecting an object instance in the Console. Currently when we run the following code in the Web Inspector Console, the output shows **public** fields & methods, but not private ones. ``` class Foo { public = 'public'; #private = 'private'; publicMethod() {} #privateMethod() {} } new Foo(); // Inspect the Console output now ```
Attachments
Private fields and methods are missing (89.92 KB, image/png)
2022-01-29 08:17 PST, Rob Palmer
no flags
Radar WebKit Bug Importer
Comment 1 2022-02-05 08:18:16 PST
Note You need to log in before you can comment on or make changes to this bug.