blob: 4ef79386e745384f243ffc3fb701085d2e787abf (
plain)
1
2
3
4
5
6
7
8
9
10
|
pub fn op_blob_revoke_object_url(
state: &mut OpState,
url: String,
) -> Result<(), AnyError> {
// TODO(@littledivy): fast compatible https://github.com/denoland/deno/issues/17159
let url = Url::parse(&url)?;
let blob_store = state.borrow::<BlobStore>();
blob_store.remove_object_url(&url);
Ok(())
}
|