MCPcopy
hub / github.com/di-sukharev/opencommit / isArrayBufferDetached

Function isArrayBufferDetached

out/cli.cjs:2595–2602  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

2593 }
2594 }
2595 function isArrayBufferDetached(value) {
2596 try {
2597 new Uint8Array(value);
2598 return false;
2599 } catch {
2600 return true;
2601 }
2602 }
2603 exports2.ArrayBuffer = (value, options = {}) => {
2604 if (!isNonSharedArrayBuffer(value)) {
2605 if (options.allowShared && !isSharedArrayBuffer(value)) {

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…