Version 1
[yaffs-website] / node_modules / core-js / library / modules / _inherit-if-required.js
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);
7   } return that;
8 };