Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Copy link
Copy link
@dfee

Description

@dfee
Issue body actions

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

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.