summaryrefslogtreecommitdiff
path: root/cli/disk_cache.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/disk_cache.rs')
-rw-r--r--cli/disk_cache.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/cli/disk_cache.rs b/cli/disk_cache.rs
index 58744acd8..965f8c096 100644
--- a/cli/disk_cache.rs
+++ b/cli/disk_cache.rs
@@ -50,7 +50,7 @@ impl DiskCache {
out.push(scheme);
match scheme {
- "http" | "https" => {
+ "http" | "https" | "wasm" => {
let host = url.host_str().unwrap();
let host_port = match url.port() {
// Windows doesn't support ":" in filenames, so we represent port using a
@@ -196,6 +196,7 @@ mod tests {
"https://deno.land/std/http/file_server.ts",
"https/deno.land/std/http/file_server.ts",
),
+ ("wasm://wasm/d1c677ea", "wasm/wasm/d1c677ea"),
];
if cfg!(target_os = "windows") {