astro-ghostcms/.pnpm-store/v3/files/69/56381e8dfb61992a0f3d7968db8...

9 lines
377 B
Plaintext
Raw Normal View History

2024-02-14 14:10:47 +00:00
import setPrototypeOf from "./setPrototypeOf.js";
import isNativeReflectConstruct from "./isNativeReflectConstruct.js";
export default function _construct(t, e, r) {
if (isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments);
var o = [null];
o.push.apply(o, e);
var p = new (t.bind.apply(t, o))();
return r && setPrototypeOf(p, r.prototype), p;
}