MCPcopy Index your code
hub / github.com/SocketCluster/socketcluster / typedArraySupport

Function typedArraySupport

app/public/socketcluster-client.js:2660–2669  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2658}
2659
2660function typedArraySupport () {
2661 // Can typed array instances can be augmented?
2662 try {
2663 var arr = new Uint8Array(1)
2664 arr.__proto__ = { __proto__: Uint8Array.prototype, foo: function () { return 42 } }
2665 return arr.foo() === 42
2666 } catch (e) {
2667 return false
2668 }
2669}
2670
2671Object.defineProperty(Buffer.prototype, 'parent', {
2672 enumerable: true,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…