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.

9 lines
475 B

3 months ago
  1. var isNativeReflectConstruct = require("./isNativeReflectConstruct.js");
  2. var setPrototypeOf = require("./setPrototypeOf.js");
  3. 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. }
  10. module.exports = _construct, module.exports.__esModule = true, module.exports["default"] = module.exports;