1 // 7.3.20 SpeciesConstructor(O, defaultConstructor)
2 var anObject = require('./_an-object')
3 , aFunction = require('./_a-function')
4 , SPECIES = require('./_wks')('species');
5 module.exports = function(O, D){
6 var C = anObject(O).constructor, S;
7 return C === undefined || (S = anObject(C)[SPECIES]) == undefined ? D : aFunction(S);