UNPKG

366 BJavaScriptView Raw
1var _typeof = require("../helpers/typeof");
2
3function _possibleConstructorReturn(self, call) {
4 if (call && (_typeof(call) === "object" || typeof call === "function")) {
5 return call;
6 }
7
8 if (!self) {
9 throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
10 }
11
12 return self;
13}
14
15module.exports = _possibleConstructorReturn;
\No newline at end of file