IOTConnect-Web/node_modules/@babel/runtime/helpers/esm/construct.js

9 lines
377 B
JavaScript
Raw Permalink Normal View History

2024-05-09 01:49:52 +00:00
import setPrototypeOf from "./setPrototypeOf.js";
import isNativeReflectConstruct from "./isNativeReflectConstruct.js";
export default 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;
}