callSuper.js 509 B

1234567
  1. var getPrototypeOf = require("./getPrototypeOf.js");
  2. var isNativeReflectConstruct = require("./isNativeReflectConstruct.js");
  3. var possibleConstructorReturn = require("./possibleConstructorReturn.js");
  4. function _callSuper(t, o, e) {
  5. return o = getPrototypeOf(o), possibleConstructorReturn(t, isNativeReflectConstruct() ? Reflect.construct(o, e || [], getPrototypeOf(t).constructor) : o.apply(t, e));
  6. }
  7. module.exports = _callSuper, module.exports.__esModule = true, module.exports["default"] = module.exports;