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

Function _isNativeReflectConstruct

client-dist/socket.io.js:86–96  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

84 return _setPrototypeOf(o, p);
85 }
86 function _isNativeReflectConstruct() {
87 if (typeof Reflect === "undefined" || !Reflect.construct) return false;
88 if (Reflect.construct.sham) return false;
89 if (typeof Proxy === "function") return true;
90 try {
91 Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
92 return true;
93 } catch (e) {
94 return false;
95 }
96 }
97 function _construct(Parent, args, Class) {
98 if (_isNativeReflectConstruct()) {
99 _construct = Reflect.construct.bind();

Callers 2

_constructFunction · 0.85
_createSuperFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected