You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
475 B
10 lines
475 B
4 weeks ago
|
var isNativeReflectConstruct = require("./isNativeReflectConstruct.js");
|
||
|
var setPrototypeOf = require("./setPrototypeOf.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;
|
||
|
}
|
||
|
module.exports = _construct, module.exports.__esModule = true, module.exports["default"] = module.exports;
|