source: trip-planner-front/node_modules/core-js/internals/set-species.js@ 6a80231

Last change on this file since 6a80231 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 638 bytes
Line 
1'use strict';
2var getBuiltIn = require('../internals/get-built-in');
3var definePropertyModule = require('../internals/object-define-property');
4var wellKnownSymbol = require('../internals/well-known-symbol');
5var DESCRIPTORS = require('../internals/descriptors');
6
7var SPECIES = wellKnownSymbol('species');
8
9module.exports = function (CONSTRUCTOR_NAME) {
10 var Constructor = getBuiltIn(CONSTRUCTOR_NAME);
11 var defineProperty = definePropertyModule.f;
12
13 if (DESCRIPTORS && Constructor && !Constructor[SPECIES]) {
14 defineProperty(Constructor, SPECIES, {
15 configurable: true,
16 get: function () { return this; }
17 });
18 }
19};
Note: See TracBrowser for help on using the repository browser.