Skip to content

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

Open

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

Activity

  1. added
    Bug
    Domain: lib.d.ts
    on May 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugDomain: lib.d.ts

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      ⌂ Proxy