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

Function _isNativeFunction

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

Source from the content-addressed store, hash-verified

101 t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o);
102 }
103 function _isNativeFunction(t) {
104 try {
105 return -1 !== Function.toString.call(t).indexOf("[native code]");
106 } catch (n) {
107 return "function" == typeof t;
108 }
109 }
110 function _isNativeReflectConstruct() {
111 try {
112 var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));

Callers 1

_wrapNativeSuperFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected