From 966ce7de8a23f63d0f30b1748fe69ccaf07519e0 Mon Sep 17 00:00:00 2001 From: Luca Casonato Date: Wed, 7 Apr 2021 15:22:14 +0200 Subject: feat: blob URL support (#10045) This commit adds blob URL support. Blob URLs are stored in a process global storage, that can be accessed from all workers, and the module loader. Blob URLs can be created using `URL.createObjectURL` and revoked using `URL.revokeObjectURL`. This commit does not add support for `fetch`ing blob URLs. This will be added in a follow up commit. --- cli/source_maps.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'cli/source_maps.rs') diff --git a/cli/source_maps.rs b/cli/source_maps.rs index 8bc070418..d62c0f3e0 100644 --- a/cli/source_maps.rs +++ b/cli/source_maps.rs @@ -142,6 +142,7 @@ pub fn get_orig_position( // around it. Use the `file_name` we get from V8 if // `source_file_name` does not parse as a URL. let file_name = match deno_core::resolve_url(source_file_name) { + Ok(m) if m.scheme() == "blob" => file_name, Ok(m) => m.to_string(), Err(_) => file_name, }; -- cgit v1.2.3