WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
262834
Web Inspector: Can't inspect private static members of a JS class
https://bugs.webkit.org/show_bug.cgi?id=262834
Summary
Web Inspector: Can't inspect private static members of a JS class
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
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2023-10-06 23:39:26 PDT
<
rdar://problem/116613089
>
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.
Top of Page
Format For Printing
XML
Clone This Bug