wallet-core/node_modules/core-js/modules/$.set-species.js

13 lines
366 B
JavaScript
Raw Normal View History

2017-05-03 15:35:00 +02:00
'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; }
});
};