Description of `Object.keys` outdated because it does not return symbol keys

UNCONFIRMED
Unassigned

Status

defect
P5
normal
UNCONFIRMED
3 years ago
3 years ago

People

(Reporter: mightyiampresence, Unassigned)

Tracking

Details

()

:: Developer Documentation Request

      Request Type: Correction
     Gecko Version: unspecified
 Technical Contact: 

:: Details

`Object.keys` does not "returns an array of a given object's own enumerable properties" because:

```js
let s = Symbol()
let obj = {
  foo: undefined,
  [s]: undefined
}

obj.propertyIsEnumerable('foo')
// true
obj.propertyIsEnumerable(s)
// true

Object.keys(obj)
// [ 'foo' ]
```
You need to log in before you can comment on or make changes to this bug.