Skip to content

Object.getOwnPropertyDescriptors accepts undefined (lib.es2017.object.d.ts) #31175

Open
@dfee

Description

@dfee

TypeScript Version: 3.4.5

Search Terms:
getOwnPropertyDescriptors

Code

Object.getOwnPropertyDescriptors(undefined);

Expected behavior:
Undefined is not accepted.

Actual behavior:
Undefined is accepted.

Playground Link:
https://www.typescriptlang.org/play/index.html#src=Object.getOwnPropertyDescriptors(undefined)%3B

However, can't seem to enable es2017 in the Playground

Related Issues:
n/a

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptDomain: lib.d.tsThe issue relates to the different libraries shipped with TypeScript

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions