summaryrefslogtreecommitdiff
path: root/cli/tools/repl.rs
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2021-09-24 11:10:42 -0400
committerGitHub <noreply@github.com>2021-09-24 11:10:42 -0400
commit01da1d0adc0d09d60eb765ac583be8108eb31e36 (patch)
tree21819769192f9b86c0c95f8a1bdcc911ceb2bd7b /cli/tools/repl.rs
parent703ca905fd2ddd1860d704bf43aa66679a47a1e5 (diff)
refactor: Rename ProgramState to ProcState (#12204)
Move Arc into struct
Diffstat (limited to 'cli/tools/repl.rs')
-rw-r--r--cli/tools/repl.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/cli/tools/repl.rs b/cli/tools/repl.rs
index 774cece24..219ee3502 100644
--- a/cli/tools/repl.rs
+++ b/cli/tools/repl.rs
@@ -3,7 +3,7 @@
use crate::ast::transpile;
use crate::ast::ImportsNotUsedAsValues;
use crate::colors;
-use crate::program_state::ProgramState;
+use crate::proc_state::ProcState;
use deno_ast::swc::parser::error::SyntaxError;
use deno_ast::swc::parser::token::{Token, Word};
use deno_core::error::AnyError;
@@ -731,7 +731,7 @@ async fn read_line_and_poll(
}
pub async fn run(
- program_state: &ProgramState,
+ ps: &ProcState,
worker: MainWorker,
maybe_eval: Option<String>,
) -> Result<(), AnyError> {
@@ -745,7 +745,7 @@ pub async fn run(
response_rx: RefCell::new(response_rx),
};
- let history_file_path = program_state.dir.root.join("deno_history.txt");
+ let history_file_path = ps.dir.root.join("deno_history.txt");
let editor = ReplEditor::new(helper, history_file_path);
if let Some(eval) = maybe_eval {