Bug 250552 - Provide public C API for detaching backing store of ArrayBuffer object created with JSObjectMakeArrayBufferWithBytesNoCopy()
Summary: Provide public C API for detaching backing store of ArrayBuffer object create...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: WebKit Local Build
Hardware: Mac (Apple Silicon) macOS 13
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-01-13 02:06 PST by Kasper Isager Dalsgarð
Modified: 2023-01-20 02:07 PST (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kasper Isager Dalsgarð 2023-01-13 02:06:23 PST
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
Comment 1 Radar WebKit Bug Importer 2023-01-20 02:07:18 PST
<rdar://problem/104469032>