diff options
author | Casper Beyer <caspervonb@pm.me> | 2020-06-11 15:03:27 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-11 11:03:27 -0400 |
commit | 813210d4337bf6e174f1da1f1a6c6fb9b073afa2 (patch) | |
tree | fa408a74ced787b2864dbfec524c1ea6588fde00 /cli/disk_cache.rs | |
parent | 5ee2ce1b1c37f08b11a25e6c0d190f3c397c7ec2 (diff) |
fix: WebAssembly runtime error propagation (#6137)
Currently WebAssembly runtime errors don't propagate up to the user as
they use urls to denote where the error occurred which get caught by the source-map
pipeline which doesn't support the wasm scheme.
Diffstat (limited to 'cli/disk_cache.rs')
-rw-r--r-- | cli/disk_cache.rs | 3 |
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") { |