Open
Bug 1759826
Opened 3 years ago
Updated 2 years ago
ES2022 private methods are not displayed when expanding object
Categories
(DevTools :: Object Inspector, defect, P3)
DevTools
Object Inspector
Tracking
(firefox-esr91 wontfix, firefox100 wontfix, firefox101 wontfix, firefox102 wontfix, firefox103 fix-optional)
NEW
Tracking | Status | |
---|---|---|
firefox-esr91 | --- | wontfix |
firefox100 | --- | wontfix |
firefox101 | --- | wontfix |
firefox102 | --- | wontfix |
firefox103 | --- | fix-optional |
People
(Reporter: nchevobbe, Unassigned)
References
(Regression)
Details
(Keywords: regression)
Steps to reproduce
- Open the console
- Evaluate the following
new(class {
#private = 'private';
#getPrivate() {
return this.#private
}
getPublic() {}
})()
- Expand
Object
, and then its<prototype>
node
Expected results
▼ Object { #private: "private" }
| #private: "private"
| ▼<prototype>: Object { … }
| | ▶︎ constructor: class {}
| | ▶︎ #getPrivate: function getPrivate()
| | ▶︎ getPublic: function getPublic()
| | ▶︎ <prototype>: Object { … }
Actual results
the private method is missing
▼ Object { #private: "private" }
| #private: "private"
| ▼<prototype>: Object { … }
| | ▶︎ constructor: class {}
| | ▶︎ getPublic: function getPublic()
| | ▶︎ <prototype>: Object { … }
Comment 1•3 years ago
|
||
I have a sneaking suspicion that this was regressed by Bug 1662559; which could be confirmed by checking if private getter/setter properties continue to exist.
Regressed by: 1662559
Updated•3 years ago
|
Keywords: regression
Comment 2•3 years ago
|
||
Set release status flags based on info from the regressing bug 1662559
status-firefox100:
--- → affected
status-firefox101:
--- → affected
status-firefox102:
--- → affected
status-firefox-esr91:
--- → affected
Updated•3 years ago
|
Updated•3 years ago
|
Comment 3•2 years ago
|
||
Set release status flags based on info from the regressing bug 1662559
status-firefox103:
--- → affected
Updated•2 years ago
|
You need to log in
before you can comment on or make changes to this bug.
Description
•