Bug 256319 - Web Inspector: objects can have multiple private fields with the same name
Summary: Web Inspector: objects can have multiple private fields with the same name
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: Devin Rousso
URL:
Keywords: InRadar
Depends on: 254961
Blocks:
  Show dependency treegraph
 
Reported: 2023-05-04 10:24 PDT by Devin Rousso
Modified: 2023-08-30 21:41 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 Devin Rousso 2023-05-04 10:24:10 PDT
# STEPS TO REPRODUCE
1. inspect any page
2. log the following in the Console
```
class Foo { #foo = 42; static #bar = 42; #baz() { } }
class Bar extends Foo { #foo = 'asd'; static #bar = 'asd'; #baz() { } }
new Bar
```

## EXPECTED
Bar {#foo: 42, #foo: "asd"}

## ACTUAL
Bar {#foo: "asd"}
Comment 1 Devin Rousso 2023-05-04 11:00:27 PDT
Pull request: https://github.com/WebKit/WebKit/pull/13448
Comment 2 Radar WebKit Bug Importer 2023-05-11 10:25:43 PDT
<rdar://problem/109215331>
Comment 3 EWS 2023-08-30 21:41:47 PDT
Committed 267483@main (eba01be516e6): <https://commits.webkit.org/267483@main>

Reviewed commits have been landed. Closing PR #13448 and removing active labels.