mirror of https://github.com/jkjoy/sunpeiwen.git
14 lines
359 B
JavaScript
14 lines
359 B
JavaScript
'use strict';
|
|
var global = require('./_global');
|
|
var dP = require('./_object-dp');
|
|
var DESCRIPTORS = require('./_descriptors');
|
|
var SPECIES = require('./_wks')('species');
|
|
|
|
module.exports = function (KEY) {
|
|
var C = global[KEY];
|
|
if (DESCRIPTORS && C && !C[SPECIES]) dP.f(C, SPECIES, {
|
|
configurable: true,
|
|
get: function () { return this; }
|
|
});
|
|
};
|