Bug 262834 - Web Inspector: Can't inspect private static members of a JS class
Summary: Web Inspector: Can't inspect private static members of a JS class
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-10-06 23:39 PDT by Patrick Angle
Modified: 2023-10-06 23:53 PDT (History)
2 users (show)

See Also:


Attachments

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