29 lines
666 B
JavaScript
29 lines
666 B
JavaScript
// Metro module 1409 (f1410).
|
|
if (typeof Object.create === "function") {
|
|
module.exports = function inherits(a0, a1) {
|
|
if (a1) {
|
|
a0.super_ = a1;
|
|
a0.prototype = Object.create(a1.prototype, {
|
|
constructor: {
|
|
value: a0,
|
|
enumerable: false,
|
|
writable: true,
|
|
configurable: true
|
|
}
|
|
});
|
|
}
|
|
};
|
|
} else {
|
|
module.exports = function inherits(a0, a1) {
|
|
if (a1) {
|
|
a0.super_ = a1;
|
|
const TempCtor = function TempCtor() {};
|
|
TempCtor.prototype = a1.prototype;
|
|
a0.prototype = {
|
|
__proto__: TempCtor.prototype
|
|
};
|
|
a0.prototype.constructor = a0;
|
|
}
|
|
};
|
|
}
|