Bug 250552

Summary: Provide public C API for detaching backing store of ArrayBuffer object created with JSObjectMakeArrayBufferWithBytesNoCopy()
Product: WebKit Reporter: Kasper Isager Dalsgarð <kasperisager>
Component: JavaScriptCoreAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: keith_miller, mark.lam, webkit-bug-importer, ysuzuki
Priority: P2 Keywords: InRadar
Version: WebKit Local Build   
Hardware: Mac (Apple Silicon)   
OS: macOS 13   

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