Bug 262834

Summary: Web Inspector: Can't inspect private static members of a JS class
Product: WebKit Reporter: Patrick Angle <pangle>
Component: Web InspectorAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: inspector-bugzilla-changes, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: All   
OS: All   

Description Patrick Angle 2023-10-06 23:39:16 PDT
Web Inspector recently gained support for inspecting private members of an object, however it appears that static members didn't make the cut. Take the following code as an example:

```
PA = {};

PA.PublicClass = class PublicClass {
	static #PrivateInnerClass = class PrivateInnerClass {
		/* impl */
	}
}
```

If you log `PA.PublicClass` to the console, you can't see that `#PrivateInnerClass` exists. If I get rid of the `static` part and then log `new PA.PublicClass`, I can see that the created object has a `#PrivateInnerClass` defined.
Comment 1 Radar WebKit Bug Importer 2023-10-06 23:39:26 PDT
<rdar://problem/116613089>
Comment 2 Patrick Angle 2023-10-06 23:40:34 PDT
19616.1.27.211.1
Comment 3 Patrick Angle 2023-10-06 23:53:46 PDT
Also reproduces in STP 180.