2024-01-16 22:53:42 +08:00

12 lines
443 B
JavaScript

var setPrototypeOf = require("./setPrototypeOf");
function _inherits(e, t) {
if ("function" != typeof t && null !== t)
throw new TypeError("Super expression must either be null or a function");
(e.prototype = Object.create(t && t.prototype, {
constructor: { value: e, writable: !0, configurable: !0 },
})),
Object.defineProperty(e, "prototype", { writable: !1 }),
t && setPrototypeOf(e, t);
}
module.exports = _inherits;