getOwnPropertyDescriptor.js 262 B

123456789101112131415
  1. 'use strict';
  2. var GetIntrinsic = require('get-intrinsic');
  3. var $gOPD = GetIntrinsic('%Object.getOwnPropertyDescriptor%', true);
  4. if ($gOPD) {
  5. try {
  6. $gOPD([], 'length');
  7. } catch (e) {
  8. // IE 8 has a broken gOPD
  9. $gOPD = null;
  10. }
  11. }
  12. module.exports = $gOPD;