13 lines
366 B
JavaScript
13 lines
366 B
JavaScript
'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; }
|
|
});
|
|
}; |