Skip to content
Permalink
Newer
Older
100644 16 lines (12 sloc) 263 Bytes
Ignoring revisions in .git-blame-ignore-revs.
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;