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

25 lines
716 B
JavaScript

// Module ID: 5453
// Function ID: 5454
// Name: _inherits
// Dependencies: [5454]
// Module 5453 (_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(5454) /* _setPrototypeOf */(value, arg1);
}
};