Open Bug 1759823 Opened 3 years ago

Private getter appears in the object summary

Categories

(DevTools :: Object Inspector, defect, P3)

defect

Tracking

(Not tracked)

People

(Reporter: nchevobbe, Unassigned)

Details

Steps to reproduce

  1. Open the console
  2. Evaluate the following
new(class {
    #private = 'private';
    get #privateGetter() { return this.#private }
})()

Expected results

As with regular getters, the private getter isn't displayed in the object summary, and we get Object { #private: "private" } in the console

Actual results

The following is displayed Object { #privateGetter: undefined, #private: "private" }

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