source: imaps-frontend/node_modules/core-js/internals/set-species.js@ 79a0317

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

F4 Finalna Verzija

  • Property mode set to 100644
File size: 601 bytes
Line 
1'use strict';
2var getBuiltIn = require('../internals/get-built-in');
3var defineBuiltInAccessor = require('../internals/define-built-in-accessor');
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
12 if (DESCRIPTORS && Constructor && !Constructor[SPECIES]) {
13 defineBuiltInAccessor(Constructor, SPECIES, {
14 configurable: true,
15 get: function () { return this; }
16 });
17 }
18};
Note: See TracBrowser for help on using the repository browser.