diff options
Diffstat (limited to 'cli/tools/bench.rs')
-rw-r--r-- | cli/tools/bench.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cli/tools/bench.rs b/cli/tools/bench.rs index 70fc34ca1..0aa7cc365 100644 --- a/cli/tools/bench.rs +++ b/cli/tools/bench.rs @@ -691,10 +691,10 @@ pub async fn run_benchmarks_with_watch( ); if let Some(changed) = &changed { - for path in changed.iter().filter_map(|path| { - deno_core::resolve_url_or_path_deprecated(&path.to_string_lossy()) - .ok() - }) { + for path in changed + .iter() + .filter_map(|path| ModuleSpecifier::from_file_path(path).ok()) + { if modules.contains(&path) { modules_to_reload.push(specifier); break; |