Debian Codegraph @

packages/babel-runtime/helpers/esm/possibleConstructorReturn.js

raw symbols SCIP
1 import _typeof from "./typeof.js";
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 }