Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4825.js (118.4 MB)
26 lines
683 B
JavaScript
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);
|
|
}
|
|
};
|