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