source: imaps-frontend/node_modules/@babel/runtime/helpers/construct.js

main
Last change on this file was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago

Update repo after prototype presentation

  • Property mode set to 100644
File size: 475 bytes
Line 
1var isNativeReflectConstruct = require("./isNativeReflectConstruct.js");
2var setPrototypeOf = require("./setPrototypeOf.js");
3function _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}
10module.exports = _construct, module.exports.__esModule = true, module.exports["default"] = module.exports;
Note: See TracBrowser for help on using the repository browser.