Function mozjs::jsapi::DetachArrayBuffer
source · pub unsafe extern "C" fn DetachArrayBuffer(
cx: *mut JSContext,
obj: Handle<*mut JSObject>,
) -> bool
Expand description
Detach an ArrayBuffer, causing all associated views to no longer refer to the ArrayBuffer’s original attached memory.
This function throws only if it is provided a non-ArrayBuffer object or if the provided ArrayBuffer is a WASM-backed ArrayBuffer or an ArrayBuffer used in asm.js code.