main
Last change
on this file since d565449 was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago |
Update repo after prototype presentation
|
-
Property mode
set to
100644
|
File size:
263 bytes
|
Rev | Line | |
---|
[d565449] | 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;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.