MCPcopy Create free account
hub / github.com/socketio/socket.io / _possibleConstructorReturn

Function _possibleConstructorReturn

client-dist/socket.io.js:147–154  ·  view source on GitHub ↗
(self, call)

Source from the content-addressed store, hash-verified

145 return self;
146 }
147 function _possibleConstructorReturn(self, call) {
148 if (call && (typeof call === "object" || typeof call === "function")) {
149 return call;
150 } else if (call !== void 0) {
151 throw new TypeError("Derived constructors may only return object or undefined");
152 }
153 return _assertThisInitialized(self);
154 }
155 function _createSuper(Derived) {
156 var hasNativeReflectConstruct = _isNativeReflectConstruct();
157 return function _createSuperInternal() {

Callers 1

_createSuperFunction · 0.85

Calls 1

_assertThisInitializedFunction · 0.85

Tested by

no test coverage detected