|
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:
557 bytes
|
| Line | |
|---|
| 1 | import getPrototypeOf from "./getPrototypeOf.js";
|
|---|
| 2 | import isNativeReflectConstruct from "./isNativeReflectConstruct.js";
|
|---|
| 3 | import possibleConstructorReturn from "./possibleConstructorReturn.js";
|
|---|
| 4 | function _createSuper(t) {
|
|---|
| 5 | var r = isNativeReflectConstruct();
|
|---|
| 6 | return function () {
|
|---|
| 7 | var e,
|
|---|
| 8 | o = getPrototypeOf(t);
|
|---|
| 9 | if (r) {
|
|---|
| 10 | var s = getPrototypeOf(this).constructor;
|
|---|
| 11 | e = Reflect.construct(o, arguments, s);
|
|---|
| 12 | } else e = o.apply(this, arguments);
|
|---|
| 13 | return possibleConstructorReturn(this, e);
|
|---|
| 14 | };
|
|---|
| 15 | }
|
|---|
| 16 | export { _createSuper as default }; |
|---|
Note:
See
TracBrowser
for help on using the repository browser.