You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

getOwnPropertyDescriptor.js 258B

123456789101112131415
  1. 'use strict';
  2. var GetIntrinsic = require('../GetIntrinsic');
  3. var $gOPD = GetIntrinsic('%Object.getOwnPropertyDescriptor%');
  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;