possibleConstructorReturn.js 436 B

1234567891011
  1. import _typeof from "@babel/runtime/helpers/typeof";
  2. import assertThisInitialized from "./assertThisInitialized.js";
  3. export default function _possibleConstructorReturn(self, call) {
  4. if (call && (_typeof(call) === "object" || typeof call === "function")) {
  5. return call;
  6. } else if (call !== void 0) {
  7. throw new TypeError("Derived constructors may only return object or undefined");
  8. }
  9. return assertThisInitialized(self);
  10. }