webhook/node_modules/es-abstract/helpers/getOwnPropertyDescriptor.js

16 lines
262 B
JavaScript
Raw Normal View History

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