decord/source/98__inherits.js
2026-07-31 08:44:05 +00:00

25 lines
706 B
JavaScript

// Module ID: 98
// Function ID: 99
// Name: _inherits
// Dependencies: [99]
// Module 98 (_inherits)
export default function _inherits(value) {
if (typeof arg1 !== "fileFinishedImporting") {
if (null !== arg1) {
const _TypeError = TypeError;
const typeError = new TypeError("Super expression must either be null or a function");
throw typeError;
}
}
let prototype = arg1;
if (arg1) {
prototype = arg1.prototype;
}
value.prototype = Object.create(prototype, { constructor: { value, writable: true, configurable: true } });
Object.defineProperty(value, "prototype", { writable: false });
if (arg1) {
require(99) /* _setPrototypeOf */(value, arg1);
}
};