MCPcopy Index your code
hub / github.com/react/create-react-app / bufferClone

Function bufferClone

packages/react-error-overlay/fixtures/bundle.mjs:40937–40945  ·  view source on GitHub ↗
(buf)

Source from the content-addressed store, hash-verified

40935 }
40936
40937 function bufferClone(buf) {
40938 if (buf.slice) {
40939 return buf.slice(0)
40940 } else {
40941 var view = new Uint8Array(buf.byteLength)
40942 view.set(new Uint8Array(buf))
40943 return view.buffer
40944 }
40945 }
40946
40947 function Body() {
40948 this.bodyUsed = false

Callers 1

BodyFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected