Files
safari-hunt/node_modules/core-js/modules/_inherit-if-required.js
Vahagn Khachatryan 4fa4328740 Configring node js.
2018-12-07 15:58:35 +00:00

8 lines
338 B
JavaScript

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