aboutsummaryrefslogtreecommitdiff
path: root/node_modules/core-js/modules/library/_set-species.js
blob: 4320fa5101f100b3c551457cef1a775d8647836d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
'use strict';
var global      = require('./_global')
  , core        = require('./_core')
  , dP          = require('./_object-dp')
  , DESCRIPTORS = require('./_descriptors')
  , SPECIES     = require('./_wks')('species');

module.exports = function(KEY){
  var C = typeof core[KEY] == 'function' ? core[KEY] : global[KEY];
  if(DESCRIPTORS && C && !C[SPECIES])dP.f(C, SPECIES, {
    configurable: true,
    get: function(){ return this; }
  });
};