Alex Rudenko | bfb1124 | 2024-10-17 12:50:05 | [diff] [blame] | 1 | 'use strict'; |
2 | |||||
3 | var GetIntrinsic = require('get-intrinsic'); | ||||
4 | |||||
5 | var $gOPD = GetIntrinsic('%Object.getOwnPropertyDescriptor%', true); | ||||
6 | |||||
7 | if ($gOPD) { | ||||
8 | try { | ||||
9 | $gOPD([], 'length'); | ||||
10 | } catch (e) { | ||||
11 | // IE 8 has a broken gOPD | ||||
12 | $gOPD = null; | ||||
13 | } | ||||
14 | } | ||||
15 | |||||
16 | module.exports = $gOPD; |