decord/source/__polyfill/01xxx/module_1460.js
github-actions e510164e6b chore: update source for alpha 346.2
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4759.js (118.4 MB)
2026-09-10 05:38:07 +00:00

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