aboutsummaryrefslogtreecommitdiff
path: root/node_modules/core-js/modules/$.set-species.js
blob: b1d04c6bd14aba4bad14ebdf71405d7356fb2d11 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
'use strict';
var global      = require('./$.global')
  , $           = require('./$')
  , DESCRIPTORS = require('./$.descriptors')
  , SPECIES     = require('./$.wks')('species');

module.exports = function(KEY){
  var C = global[KEY];
  if(DESCRIPTORS && C && !C[SPECIES])$.setDesc(C, SPECIES, {
    configurable: true,
    get: function(){ return this; }
  });
};