Truly independent web browser
LibJS: Expose the owned backing store's data to Rust embedders
Shannon Boothe63217bbea6f
diff --git a/Libraries/LibJS/Rust/src/runtime/array_buffer.rs b/Libraries/LibJS/Rust/src/runtime/array_buffer.rsindex f97f9c31073..f9dd131b055 100644--- a/Libraries/LibJS/Rust/src/runtime/array_buffer.rs+++ b/Libraries/LibJS/Rust/src/runtime/array_buffer.rs@@ -192,7 +192,7 @@ impl OwnedBackingStore {}#[inline]- fn data(&self) -> *mut u8 {+ pub fn data(&self) -> *mut u8 {self.storage.as_ref().map_or(core::ptr::null_mut(), OwnedPrimitiveStorage::data)