iwmlib/3rdparty/systemjs/babel-helpers/possibleConstructorReturn.js

7 lines
243 B
JavaScript
Executable File

export default (function (self, call) {
if (!self) {
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
}
return call && (typeof call === "object" || typeof call === "function") ? call : self;
});