MCPcopy
hub / github.com/socketio/socket.io / _wrapNativeSuper

Function _wrapNativeSuper

packages/socket.io/client-dist/socket.io.js:162–183  ·  view source on GitHub ↗
(t)

Source from the content-addressed store, hash-verified

160 }
161 }
162 function _wrapNativeSuper(t) {
163 var r = "function" == typeof Map ? new Map() : void 0;
164 return _wrapNativeSuper = function (t) {
165 if (null === t || !_isNativeFunction(t)) return t;
166 if ("function" != typeof t) throw new TypeError("Super expression must either be null or a function");
167 if (void 0 !== r) {
168 if (r.has(t)) return r.get(t);
169 r.set(t, Wrapper);
170 }
171 function Wrapper() {
172 return _construct(t, arguments, _getPrototypeOf(this).constructor);
173 }
174 return Wrapper.prototype = Object.create(t.prototype, {
175 constructor: {
176 value: Wrapper,
177 enumerable: !1,
178 writable: !0,
179 configurable: !0
180 }
181 }), _setPrototypeOf(Wrapper, t);
182 }, _wrapNativeSuper(t);
183 }
184
185 var PACKET_TYPES = Object.create(null); // no Map = no polyfill
186 PACKET_TYPES["open"] = "0";

Callers 1

socket.io.jsFile · 0.85

Calls 2

_isNativeFunctionFunction · 0.85
_setPrototypeOfFunction · 0.85

Tested by

no test coverage detected