$.set-species.js
366 Bytes
'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; }
});
};