wallet-core/node_modules/core-js/modules/es7.object.define-getter.js

12 lines
519 B
JavaScript
Raw Normal View History

2017-05-28 00:38:50 +02:00
'use strict';
var $export = require('./_export')
, toObject = require('./_to-object')
, aFunction = require('./_a-function')
, $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});
}
});