You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
505 B
12 lines
505 B
'use strict'; |
|
var $export = require('./_export'); |
|
var toObject = require('./_to-object'); |
|
var aFunction = require('./_a-function'); |
|
var $defineProperty = require('./_object-dp'); |
|
|
|
// B.2.2.2 Object.prototype.__defineGetter__(P, getter) |
|
require('./_descriptors') && $export($export.P + require('./_object-forced-pam'), 'Object', { |
|
__defineGetter__: function __defineGetter__(P, getter) { |
|
$defineProperty.f(toObject(this), P, { get: aFunction(getter), enumerable: true, configurable: true }); |
|
} |
|
});
|
|
|