From b9c0e7cd550ab14fa7da7e33ed87cbeeeb9785a0 Mon Sep 17 00:00:00 2001 From: Nayeem Rahman Date: Sat, 1 Jul 2023 23:52:30 +0100 Subject: Reland "fix(cli): don't store blob and data urls in the module cache" (#18581) Relands #18261 now that https://github.com/lucacasonato/esbuild_deno_loader/pull/54 is landed and used by fresh. Fixes #18260. --- runtime/ops/web_worker/sync_fetch.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'runtime/ops/web_worker/sync_fetch.rs') diff --git a/runtime/ops/web_worker/sync_fetch.rs b/runtime/ops/web_worker/sync_fetch.rs index 4b45f5eca..4d2f4ca5a 100644 --- a/runtime/ops/web_worker/sync_fetch.rs +++ b/runtime/ops/web_worker/sync_fetch.rs @@ -1,5 +1,7 @@ // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license. +use std::sync::Arc; + use crate::web_worker::WebWorkerInternalHandle; use crate::web_worker::WebWorkerType; use deno_core::error::type_error; @@ -46,7 +48,7 @@ pub fn op_worker_sync_fetch( // URLs when none of the script URLs use the blob scheme. // Also, in which contexts are blob URLs not supported? let blob_store = state - .try_borrow::() + .try_borrow::>() .ok_or_else(|| type_error("Blob URLs are not supported in this context."))? .clone(); -- cgit v1.2.3