Bug 262834
| Summary: | Web Inspector: Can't inspect private static members of a JS class | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Patrick Angle <pangle> |
| Component: | Web Inspector | Assignee: | 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
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
<rdar://problem/116613089>
Patrick Angle
19616.1.27.211.1
Patrick Angle
Also reproduces in STP 180.