decord/source/5173__inherits.js
2026-07-21 06:55:02 +00:00

25 lines
654 B
JavaScript

// Module ID: 5173
// Function ID: 43838
// Name: _inherits
// Dependencies: []
// Module 5173 (_inherits)
export default function _inherits(value) {
if ("function" !== typeof arg1) {
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 } });
Object.defineProperty(value, "prototype", { writable: false });
if (arg1) {
require(dependencyMap[0])(value, arg1);
}
};