Files
discord-decomp/_bundle/_inherits_5449.js
T
2026-11-01 12:12:55 +02:00

23 lines
613 B
JavaScript

// Metro module 5449 (f5450).
import * as __setPrototypeOf from "./_setPrototypeOf_5450";
module.exports = function _inherits(a0, a1) {
if (typeof a1 !== "function" && a1 !== null) {
throw new TypeError("Super expression must either be null or a function");
}
a0.prototype = Object.create(a1 ? a1.prototype : a1, {
constructor: {
value: a0,
writable: true,
configurable: true
}
});
Object.defineProperty(a0, "prototype", {
writable: false
});
if (a1) {
__setPrototypeOf(a0, a1);
}
};
module.exports.__esModule = true;
module.exports.default = module.exports;