Constnium/node_modules/es-abstract/helpers/getOwnPropertyDescriptor.js
2022-06-23 02:27:43 +02:00

15 lines
262 B
JavaScript

'use strict';
var GetIntrinsic = require('get-intrinsic');
var $gOPD = GetIntrinsic('%Object.getOwnPropertyDescriptor%', true);
if ($gOPD) {
try {
$gOPD([], 'length');
} catch (e) {
// IE 8 has a broken gOPD
$gOPD = null;
}
}
module.exports = $gOPD;