mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 10:59:13 +00:00
refactor: Remove call sites of "deno_core::resolve_url_or_path" (#18169)
These call sites didn't need to use "resolve_url_or_path". Towards landing https://github.com/denoland/deno/pull/15454
This commit is contained in:
parent
a35c8e6588
commit
c4771356f2
10 changed files with 64 additions and 43 deletions
|
@ -11,6 +11,7 @@ use deno_ast::swc::visit::VisitWith;
|
|||
use deno_ast::DiagnosticsError;
|
||||
use deno_ast::ImportsNotUsedAsValues;
|
||||
use deno_ast::ModuleSpecifier;
|
||||
use deno_core::anyhow::Context;
|
||||
use deno_core::error::AnyError;
|
||||
use deno_core::futures::channel::mpsc::UnboundedReceiver;
|
||||
use deno_core::futures::FutureExt;
|
||||
|
@ -143,7 +144,8 @@ impl ReplSession {
|
|||
}
|
||||
assert_ne!(context_id, 0);
|
||||
|
||||
let referrer = deno_core::resolve_url_or_path("./$deno$repl.ts").unwrap();
|
||||
let cwd = std::env::current_dir().context("Unable to get CWD")?;
|
||||
let referrer = deno_core::resolve_path("./$deno$repl.ts", &cwd).unwrap();
|
||||
|
||||
let mut repl_session = ReplSession {
|
||||
proc_state,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue