Welcome to mirror list, hosted at ThFree Co, Russian Federation.

getOwnPropertyDescriptor.js « helpers « es-abstract « node_modules - github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 71168e93ec16fc39a501976afe71c773c4b978b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
'use strict';

var GetIntrinsic = require('../GetIntrinsic');

var $gOPD = GetIntrinsic('%Object.getOwnPropertyDescriptor%');
if ($gOPD) {
	try {
		$gOPD([], 'length');
	} catch (e) {
		// IE 8 has a broken gOPD
		$gOPD = null;
	}
}

module.exports = $gOPD;