PageRenderTime 25ms CodeModel.GetById 18ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 0ms

/node_modules/babel-polyfill/node_modules/core-js/library/modules/_set-species.js

https://bitbucket.org/worklabschd/bingle_customer2
JavaScript | 14 lines | 13 code | 1 blank | 0 comment | 4 complexity | fa61898fdb62da27496d5a6cd67fe8cf MD5 | raw file
 1'use strict';
 2var global = require('./_global');
 3var core = require('./_core');
 4var dP = require('./_object-dp');
 5var DESCRIPTORS = require('./_descriptors');
 6var SPECIES = require('./_wks')('species');
 7
 8module.exports = function (KEY) {
 9  var C = typeof core[KEY] == 'function' ? core[KEY] : global[KEY];
10  if (DESCRIPTORS && C && !C[SPECIES]) dP.f(C, SPECIES, {
11    configurable: true,
12    get: function () { return this; }
13  });
14};