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

Function _inherits

client-dist/socket.io.js:57–72  ·  view source on GitHub ↗
(subClass, superClass)

Source from the content-addressed store, hash-verified

55 return _extends.apply(this, arguments);
56 }
57 function _inherits(subClass, superClass) {
58 if (typeof superClass !== "function" && superClass !== null) {
59 throw new TypeError("Super expression must either be null or a function");
60 }
61 subClass.prototype = Object.create(superClass && superClass.prototype, {
62 constructor: {
63 value: subClass,
64 writable: true,
65 configurable: true
66 }
67 });
68 Object.defineProperty(subClass, "prototype", {
69 writable: false
70 });
71 if (superClass) _setPrototypeOf(subClass, superClass);
72 }
73 function _getPrototypeOf(o) {
74 _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
75 return o.__proto__ || Object.getPrototypeOf(o);

Callers 1

socket.io.jsFile · 0.85

Calls 2

_setPrototypeOfFunction · 0.85
createMethod · 0.80

Tested by

no test coverage detected