Urara-Blog/node_modules/.pnpm-store/v3/files/ae/b312d23377b4ba5bb752f7fe0287f121e1245788f757699a9aea7fd1d2277ad13ffc0f5e1241a4cd0705f14a559a4486223dce029e81a5667131db90ff08dc
2022-08-14 01:14:53 +08:00

18 lines
No EOL
565 B
Text

import setPrototypeOf from "./setPrototypeOf.js";
export default function _inherits(subClass, superClass) {
if (typeof superClass !== "function" && superClass !== null) {
throw new TypeError("Super expression must either be null or a function");
}
subClass.prototype = Object.create(superClass && superClass.prototype, {
constructor: {
value: subClass,
writable: true,
configurable: true
}
});
Object.defineProperty(subClass, "prototype", {
writable: false
});
if (superClass) setPrototypeOf(subClass, superClass);
}