decord/source/__polyfill/07xxx/module_7001.js
github-actions 03cf168fbc chore: update source for alpha 347.3
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4825.js (118.4 MB)
2026-09-17 08:17:09 +00:00

26 lines
683 B
JavaScript

// Module ID: 7001
// Function ID: 7002
// Dependencies: [7002]
// Module 7001
import _mod7002 from "module_7002" /* 7002 */;
export default function _inherits(value, fn) {
if (typeof fn !== "function") {
if (null !== fn) {
const _TypeError = TypeError;
const typeError = new TypeError("Super expression must either be null or a function");
throw typeError;
}
}
let prototype = fn;
if (fn) {
prototype = fn.prototype;
}
value.prototype = Object.create(prototype, { constructor: { value, writable: true, configurable: true } });
Object.defineProperty(value, "prototype", { writable: false });
if (fn) {
_mod7002(value, fn);
}
};