Opal-Estate-Pro/node_modules/core-js/modules/_inherit-if-required.js
2019-09-13 11:27:52 +07:00

10 lines
337 B
JavaScript

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;
};