_set-species.js 435 B

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