UNPKG

348 BJavaScriptView Raw
1import _typeof from "../../helpers/es6/typeof";
2export default function _possibleConstructorReturn(self, call) {
3 if (call && (_typeof(call) === "object" || typeof call === "function")) {
4 return call;
5 }
6
7 if (self === void 0) {
8 throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
9 }
10
11 return self;
12}
\No newline at end of file