Bug 1759823 Comment 0 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

**Steps to reproduce**
1. Open the console
1. Evaluate the following

```lang=js
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" }`
**Steps to reproduce**
1. Open the console
1. Evaluate the following

```js
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" }`

Back to Bug 1759823 Comment 0