|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
396 bytes
|
| Line | |
|---|
| 1 | import isNativeReflectConstruct from "./isNativeReflectConstruct.js";
|
|---|
| 2 | import setPrototypeOf from "./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 | export { _construct as default }; |
|---|
Note:
See
TracBrowser
for help on using the repository browser.