source: imaps-frontend/node_modules/core-js/modules/es.object.define-getter.js

main
Last change on this file was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 3 days ago

F4 Finalna Verzija

  • Property mode set to 100644
File size: 737 bytes
Line 
1'use strict';
2var $ = require('../internals/export');
3var DESCRIPTORS = require('../internals/descriptors');
4var FORCED = require('../internals/object-prototype-accessors-forced');
5var aCallable = require('../internals/a-callable');
6var toObject = require('../internals/to-object');
7var definePropertyModule = require('../internals/object-define-property');
8
9// `Object.prototype.__defineGetter__` method
10// https://tc39.es/ecma262/#sec-object.prototype.__defineGetter__
11if (DESCRIPTORS) {
12 $({ target: 'Object', proto: true, forced: FORCED }, {
13 __defineGetter__: function __defineGetter__(P, getter) {
14 definePropertyModule.f(toObject(this), P, { get: aCallable(getter), enumerable: true, configurable: true });
15 }
16 });
17}
Note: See TracBrowser for help on using the repository browser.