Path: blob/master/node_modules/@babel/runtime/helpers/createSuper.js
1126 views
var getPrototypeOf = require("./getPrototypeOf.js");12var isNativeReflectConstruct = require("./isNativeReflectConstruct.js");34var possibleConstructorReturn = require("./possibleConstructorReturn.js");56function _createSuper(Derived) {7var hasNativeReflectConstruct = isNativeReflectConstruct();8return function _createSuperInternal() {9var Super = getPrototypeOf(Derived),10result;1112if (hasNativeReflectConstruct) {13var NewTarget = getPrototypeOf(this).constructor;14result = Reflect.construct(Super, arguments, NewTarget);15} else {16result = Super.apply(this, arguments);17}1819return possibleConstructorReturn(this, result);20};21}2223module.exports = _createSuper, module.exports.__esModule = true, module.exports["default"] = module.exports;2425