1 var isObject = require('./_is-object')
2 , setPrototypeOf = require('./_set-proto').set;
3 module.exports = function(that, target, C){
4 var P, S = target.constructor;
5 if(S !== C && typeof S == 'function' && (P = S.prototype) !== C.prototype && isObject(P) && setPrototypeOf){
6 setPrototypeOf(that, P);