mirror of
https://github.com/denoland/deno.git
synced 2024-12-27 01:29:14 -05:00
38555a6a0f
Reland https://github.com/denoland/deno/pull/16777 The codegen is disabled in async ops and when fallback to slow call is possible (return type is a Result) to avoid hitting this V8 bug: https://github.com/denoland/deno/issues/17159
10 lines
314 B
Rust
10 lines
314 B
Rust
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(())
|
|
}
|