source: node_modules/@babel/runtime/helpers/esm/construct.js

main
Last change on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago

Initial commit

  • Property mode set to 100644
File size: 377 bytes
Line 
1import setPrototypeOf from "./setPrototypeOf.js";
2import isNativeReflectConstruct from "./isNativeReflectConstruct.js";
3export default function _construct(t, e, r) {
4 if (isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments);
5 var o = [null];
6 o.push.apply(o, e);
7 var p = new (t.bind.apply(t, o))();
8 return r && setPrototypeOf(p, r.prototype), p;
9}
Note: See TracBrowser for help on using the repository browser.