12aad2027071c43d6a904c0e47a3e8cd87db17f2faca0d2800cd226e8146309e7e3b0a8436a71362d634259229542c2d5f9fd7c9b4eb11f4b293d51c9e7609 337 B

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