decord/source/module_1385.js

34 lines
857 B
JavaScript
Raw Normal View History

2026-07-20 16:05:17 +00:00
// Module ID: 1385
2026-07-25 08:10:48 +00:00
// Function ID: 16548
2026-07-20 16:05:17 +00:00
// Dependencies: []
// Module 1385
if ("function" === typeof Object.create) {
module.exports = function inherits(value, super_) {
if (super_) {
value.super_ = super_;
const _Object = Object;
let obj = {};
2026-07-23 10:11:24 +00:00
obj = { value, enumerable: false, writable: true, configurable: true };
2026-07-20 16:05:17 +00:00
obj.constructor = obj;
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;
const prototype = TempCtor.prototype;
const tempCtor = new TempCtor();
arg0.prototype = tempCtor;
arg0.prototype.constructor = arg0;
}
};
}