+ getOwnPropertyDescriptor: (O, P) => {
+ const desc = objectGetOwnPropertyDescriptor(O, P);
+ return desc === UNDEFINED
+ ? UNDEFINED
+ : toPropertyDescriptor(desc);
+ },
+ getOwnPropertyDescriptors: (O) => {
+ const obj = toObject(O);
+ const ownKeys = getOwnPropertyKeys(obj);
+ const descriptors = {};
+ for (let k = 0; k < ownKeys.length; ++k) {
+ const key = ownKeys[k];
+ defineOwnProperty(descriptors, key, {
+ configurable: true,
+ enumerable: true,
+ value: getOwnPropertyDescriptor(O, key),
+ writable: true,
+ });
+ }
+ return descriptors;
+ },