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   

Patrick Angle
Reported 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.
Attachments
Radar WebKit Bug Importer
Comment 1 2023-10-06 23:39:26 PDT
Patrick Angle
Comment 2 2023-10-06 23:40:34 PDT
19616.1.27.211.1
Patrick Angle
Comment 3 2023-10-06 23:53:46 PDT
Also reproduces in STP 180.
Note You need to log in before you can comment on or make changes to this bug.