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

Description Rob Palmer 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
```
Comment 1 Radar WebKit Bug Importer 2022-02-05 08:18:16 PST
<rdar://problem/88527162>