Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4759.js (118.4 MB)
31 lines
827 B
JavaScript
31 lines
827 B
JavaScript
// Module ID: 1460
|
|
// Function ID: 1461
|
|
// Dependencies: []
|
|
|
|
// Module 1460
|
|
if (typeof Object.create === "function") {
|
|
module.exports = function inherits(value, super_) {
|
|
if (super_) {
|
|
value.super_ = super_;
|
|
const _Object = Object;
|
|
const obj = { constructor: null };
|
|
const obj2 = { value, enumerable: false, writable: true, configurable: true };
|
|
obj.constructor = obj2;
|
|
value.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;
|
|
}
|
|
};
|
|
}
|