_set-species.js 359 B

12345678910111213
  1. 'use strict';
  2. var global = require('./_global');
  3. var dP = require('./_object-dp');
  4. var DESCRIPTORS = require('./_descriptors');
  5. var SPECIES = require('./_wks')('species');
  6. module.exports = function (KEY) {
  7. var C = global[KEY];
  8. if (DESCRIPTORS && C && !C[SPECIES]) dP.f(C, SPECIES, {
  9. configurable: true,
  10. get: function () { return this; }
  11. });
  12. };