mirror of
https://github.com/denoland/deno.git
synced 2025-01-24 16:08:03 -05:00
10 lines
239 B
Rust
10 lines
239 B
Rust
|
pub fn op_blob_revoke_object_url(
|
||
|
state: &mut deno_core::OpState,
|
||
|
url: String,
|
||
|
) -> Result<(), AnyError> {
|
||
|
let url = Url::parse(&url)?;
|
||
|
let blob_store = state.borrow::<BlobStore>();
|
||
|
blob_store.remove_object_url(&url);
|
||
|
Ok(())
|
||
|
}
|