You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
449 B
JavaScript
14 lines
449 B
JavaScript
'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; }
|
|
});
|
|
}; |