You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
624 B
JavaScript
19 lines
624 B
JavaScript
6 years ago
|
'use strict';
|
||
|
var $export = require('./_export');
|
||
|
var toObject = require('./_to-object');
|
||
|
var toPrimitive = require('./_to-primitive');
|
||
|
var getPrototypeOf = require('./_object-gpo');
|
||
|
var getOwnPropertyDescriptor = require('./_object-gopd').f;
|
||
|
|
||
|
// B.2.2.4 Object.prototype.__lookupGetter__(P)
|
||
|
require('./_descriptors') && $export($export.P + require('./_object-forced-pam'), 'Object', {
|
||
|
__lookupGetter__: function __lookupGetter__(P) {
|
||
|
var O = toObject(this);
|
||
|
var K = toPrimitive(P, true);
|
||
|
var D;
|
||
|
do {
|
||
|
if (D = getOwnPropertyDescriptor(O, K)) return D.get;
|
||
|
} while (O = getPrototypeOf(O));
|
||
|
}
|
||
|
});
|