Bug 235859 - Web Inspector: Support ES2022 Private Methods
Summary: Web Inspector: Support ES2022 Private Methods
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: Safari Technology Preview
Hardware: All All
: P2 Normal
Assignee: Patrick Angle
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-01-29 08:17 PST by Rob Palmer
Modified: 2023-04-03 19:28 PDT (History)
4 users (show)

See Also:


Attachments
Private fields and methods are missing (89.92 KB, image/png)
2022-01-29 08:17 PST, Rob Palmer
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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>