mirror of
https://github.com/JasonYANG170/IOTConnect-Web.git
synced 2024-11-23 20:26:28 +00:00
9 lines
377 B
JavaScript
9 lines
377 B
JavaScript
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;
|
|
} |