diff options
Diffstat (limited to 'alarm/node_modules/@babel/runtime/helpers/esm/createSuper.js')
-rw-r--r-- | alarm/node_modules/@babel/runtime/helpers/esm/createSuper.js | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/alarm/node_modules/@babel/runtime/helpers/esm/createSuper.js b/alarm/node_modules/@babel/runtime/helpers/esm/createSuper.js deleted file mode 100644 index 7c96297..0000000 --- a/alarm/node_modules/@babel/runtime/helpers/esm/createSuper.js +++ /dev/null @@ -1,17 +0,0 @@ -import getPrototypeOf from "./getPrototypeOf.js"; -import isNativeReflectConstruct from "./isNativeReflectConstruct.js"; -import possibleConstructorReturn from "./possibleConstructorReturn.js"; -export default function _createSuper(Derived) { - var hasNativeReflectConstruct = isNativeReflectConstruct(); - return function _createSuperInternal() { - var Super = getPrototypeOf(Derived), - result; - if (hasNativeReflectConstruct) { - var NewTarget = getPrototypeOf(this).constructor; - result = Reflect.construct(Super, arguments, NewTarget); - } else { - result = Super.apply(this, arguments); - } - return possibleConstructorReturn(this, result); - }; -}
\ No newline at end of file |