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)

defect

Tracking

(firefox-esr91 wontfix, firefox100 wontfix, firefox101 wontfix, firefox102 wontfix, firefox103 fix-optional)

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

  1. Open the console
  2. Evaluate the following
new(class {
  #private = 'private';
  #getPrivate() {
    return this.#private
  }
  getPublic() {}
})()
  1. 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 { … }

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

Set release status flags based on info from the regressing bug 1662559

Set release status flags based on info from the regressing bug 1662559

You need to log in before you can comment on or make changes to this bug.