MCPcopy Index your code
hub / github.com/socketio/socket.io / _createSuper

Function _createSuper

client-dist/socket.io.js:155–168  ·  view source on GitHub ↗
(Derived)

Source from the content-addressed store, hash-verified

153 return _assertThisInitialized(self);
154 }
155 function _createSuper(Derived) {
156 var hasNativeReflectConstruct = _isNativeReflectConstruct();
157 return function _createSuperInternal() {
158 var Super = _getPrototypeOf(Derived),
159 result;
160 if (hasNativeReflectConstruct) {
161 var NewTarget = _getPrototypeOf(this).constructor;
162 result = Reflect.construct(Super, arguments, NewTarget);
163 } else {
164 result = Super.apply(this, arguments);
165 }
166 return _possibleConstructorReturn(this, result);
167 };
168 }
169 function _superPropBase(object, property) {
170 while (!Object.prototype.hasOwnProperty.call(object, property)) {
171 object = _getPrototypeOf(object);

Callers 1

socket.io.jsFile · 0.85

Calls 3

_getPrototypeOfFunction · 0.85

Tested by

no test coverage detected