The public JavaScriptCore C API is currently missing functions for detaching the backing store of an ArrayBuffer object created with JSObjectMakeArrayBufferWithBytesNoCopy() and also functions for testing if such an ArrayBuffer object has been detached. The private C++ APIs are already there: https://github.com/WebKit/WebKit/blob/2c3591d6db31967955f974e615d986177db22774/Source/JavaScriptCore/runtime/ArrayBuffer.h#L308-L309
<rdar://problem/104469032>