possibleConstructorReturn.js 542 B

1234567891011121314151617
  1. "use strict";
  2. exports.__esModule = true;
  3. var _typeof2 = require("../helpers/typeof");
  4. var _typeof3 = _interopRequireDefault(_typeof2);
  5. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  6. exports.default = function (self, call) {
  7. if (!self) {
  8. throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  9. }
  10. return call && ((typeof call === "undefined" ? "undefined" : (0, _typeof3.default)(call)) === "object" || typeof call === "function") ? call : self;
  11. };