Closed
Description
TypeScript Version: 2.4.2
Code
Object.getOwnPropertyDescriptors({});
Expected behavior:
Compiles with --lib es2017
Actual behavior:
Doesn't compile, missing definitions
You can see it's missing from the lib file: https://github.com/Microsoft/TypeScript/blob/master/lib/lib.es2017.object.d.ts
Reference of the implementation:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/getOwnPropertyDescriptors