Files
NapCatQQ/.pnpm-store/v3/files/a3/ac7f29bed9e021d807f88e990dbe26192c8e97aa3c42793a6e065b889c41359cdc694e6a50b89b5ee45c6085de52499aa87731f06efbeb44c7ce44ae6b220c
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

27 lines
1.1 KiB
Plaintext

import { _ as _construct } from "./_construct.js";
import { _ as _get_prototype_of } from "./_get_prototype_of.js";
import { _ as _is_native_function } from "./_is_native_function.js";
import { _ as _set_prototype_of } from "./_set_prototype_of.js";
function _wrap_native_super(Class) {
var _cache = typeof Map === "function" ? new Map() : undefined;
_wrap_native_super = function(Class) {
if (Class === null || !_is_native_function(Class)) return Class;
if (typeof Class !== "function") throw new TypeError("Super expression must either be null or a function");
if (typeof _cache !== "undefined") {
if (_cache.has(Class)) return _cache.get(Class);
_cache.set(Class, Wrapper);
}
function Wrapper() {
return _construct(Class, arguments, _get_prototype_of(this).constructor);
}
Wrapper.prototype = Object.create(Class.prototype, { constructor: { value: Wrapper, enumerable: false, writable: true, configurable: true } });
return _set_prototype_of(Wrapper, Class);
};
return _wrap_native_super(Class);
}
export { _wrap_native_super as _ };