summaryrefslogtreecommitdiff
path: root/cli/proc_state.rs
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2023-03-13 19:31:03 -0400
committerGitHub <noreply@github.com>2023-03-13 19:31:03 -0400
commitc4771356f27b250e7fdbcede0de5682982720455 (patch)
tree1d3507a0b9ee7c6388b3dae8c752328c2528fe74 /cli/proc_state.rs
parenta35c8e6588fec21586bcb19146cad19fa01f4f23 (diff)
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
Diffstat (limited to 'cli/proc_state.rs')
-rw-r--r--cli/proc_state.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/cli/proc_state.rs b/cli/proc_state.rs
index 52afcd631..eb43e75d7 100644
--- a/cli/proc_state.rs
+++ b/cli/proc_state.rs
@@ -565,7 +565,8 @@ impl ProcState {
// but sadly that's not the case due to missing APIs in V8.
let is_repl = matches!(self.options.sub_command(), DenoSubcommand::Repl(_));
let referrer = if referrer.is_empty() && is_repl {
- deno_core::resolve_url_or_path("./$deno$repl.ts")?
+ let cwd = std::env::current_dir().context("Unable to get CWD")?;
+ deno_core::resolve_path("./$deno$repl.ts", &cwd)?
} else {
deno_core::resolve_url_or_path(referrer)?
};