2024-01-16 21:26:16 +08:00
|
|
|
var setPrototypeOf = require("./setPrototypeOf.js");
|
|
|
|
var isNativeReflectConstruct = require("./isNativeReflectConstruct.js");
|
|
|
|
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;
|
2023-12-18 13:12:25 +08:00
|
|
|
}
|
2024-01-16 21:26:16 +08:00
|
|
|
module.exports = _construct, module.exports.__esModule = true, module.exports["default"] = module.exports;
|