Skip to content

Inconsistent enumerability #20565

Closed
Closed
@BridgeAR

Description

@BridgeAR

When looking at the global object we have quite a few properties that are not enumerable and we have a couple that are.

Using Object.keys(global) currently results in:

[ 'global',
  'process',
  'Buffer',
  'clearImmediate',
  'clearInterval',
  'clearTimeout',
  'setImmediate',
  'setInterval',
  'setTimeout',
  'module',
  'require' ]

URL and console are for example not enumerable. Should we maybe reconsider these and either set everything to being enumerable / not enumerable? Or should we just define that everything added from now will be not enumerable?

I could also not find any issue that was directly about this before. Somewhat related: #8810

Metadata

Metadata

Assignees

No one assigned

    Labels

    metaIssues and PRs related to the general management of the project.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions