Object.getOwnPropertyDescriptors accepts undefined (lib.es2017.object.d.ts) #31175
Labels
Bug
A bug in TypeScript
Domain: lib.d.ts
The issue relates to the different libraries shipped with TypeScript
Milestone
TypeScript Version: 3.4.5
Search Terms:
getOwnPropertyDescriptors
Code
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
The text was updated successfully, but these errors were encountered: