UNPKG

436 BJavaScriptView Raw
1import _typeof from "@babel/runtime/helpers/typeof";
2import assertThisInitialized from "./assertThisInitialized.js";
3export 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
10 return assertThisInitialized(self);
11}
\No newline at end of file