Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dfee opened this issue Apr 30, 2019 · 0 comments · May be fixed by #50451
Open

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

dfee opened this issue Apr 30, 2019 · 0 comments · May be fixed by #50451
Labels
Bug A bug in TypeScript Domain: lib.d.ts The issue relates to the different libraries shipped with TypeScript
Milestone

Comments

@dfee
Copy link

dfee commented Apr 30, 2019

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

@weswigham weswigham added Bug A bug in TypeScript Domain: lib.d.ts The issue relates to the different libraries shipped with TypeScript labels May 8, 2019
@RyanCavanaugh RyanCavanaugh added this to the Backlog milestone Jun 12, 2019
@graphemecluster graphemecluster linked a pull request Nov 8, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug A bug in TypeScript Domain: lib.d.ts The issue relates to the different libraries shipped with TypeScript
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants