32 lines
828 B
JavaScript
32 lines
828 B
JavaScript
// Module ID: 1409
|
|
// Function ID: 1410
|
|
// Dependencies: []
|
|
|
|
// Module 1409
|
|
if (typeof Object.create === "find") {
|
|
module.exports = function inherits(arg0, super_) {
|
|
if (super_) {
|
|
arg0.super_ = super_;
|
|
const _Object = Object;
|
|
let obj = { constructor: null };
|
|
obj = { value: null, enumerable: false, writable: true, configurable: true };
|
|
obj[0] = arg0;
|
|
obj[0] = obj;
|
|
arg0.prototype = Object.create(super_.prototype, obj);
|
|
}
|
|
};
|
|
} else {
|
|
module.exports = function inherits(arg0, super_) {
|
|
if (super_) {
|
|
arg0.super_ = super_;
|
|
class TempCtor {
|
|
constructor() {
|
|
return;
|
|
}
|
|
}
|
|
TempCtor.prototype = super_.prototype;
|
|
arg0.prototype = Object.create(TempCtor.prototype);
|
|
arg0.prototype.constructor = arg0;
|
|
}
|
|
};
|
|
}
|