callSuper.js 427 B

1234567
  1. import getPrototypeOf from "./getPrototypeOf.js";
  2. import isNativeReflectConstruct from "./isNativeReflectConstruct.js";
  3. import possibleConstructorReturn from "./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. export { _callSuper as default };