summaryrefslogtreecommitdiff
path: root/cli/repl.rs
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2020-10-13 13:35:35 +0200
committerGitHub <noreply@github.com>2020-10-13 13:35:35 +0200
commit0bd3cea0ff6d2d4840c0df2938b5ae5c5d7cc4bd (patch)
treefa9a635db4d34e0a30e13d37f40a0d7a4f92f44a /cli/repl.rs
parent000ac5c40b71c38cc26a36e579fbb0936f0573d7 (diff)
refactor(cli): rename GlobalState to ProgramState (#7914)
Diffstat (limited to 'cli/repl.rs')
-rw-r--r--cli/repl.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/cli/repl.rs b/cli/repl.rs
index 697f679f6..3355bbac0 100644
--- a/cli/repl.rs
+++ b/cli/repl.rs
@@ -1,7 +1,7 @@
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
-use crate::global_state::GlobalState;
use crate::inspector::InspectorSession;
+use crate::program_state::ProgramState;
use crate::worker::MainWorker;
use crate::worker::Worker;
use deno_core::error::AnyError;
@@ -86,12 +86,12 @@ async fn read_line_and_poll(
}
pub async fn run(
- global_state: &GlobalState,
+ program_state: &ProgramState,
mut worker: MainWorker,
) -> Result<(), AnyError> {
let mut session = worker.create_inspector_session();
- let history_file = global_state.dir.root.join("deno_history.txt");
+ let history_file = program_state.dir.root.join("deno_history.txt");
post_message_and_poll(&mut *worker, &mut session, "Runtime.enable", None)
.await?;