summaryrefslogtreecommitdiff
path: root/cli/ops/runtime_compiler.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/ops/runtime_compiler.rs
parent000ac5c40b71c38cc26a36e579fbb0936f0573d7 (diff)
refactor(cli): rename GlobalState to ProgramState (#7914)
Diffstat (limited to 'cli/ops/runtime_compiler.rs')
-rw-r--r--cli/ops/runtime_compiler.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/cli/ops/runtime_compiler.rs b/cli/ops/runtime_compiler.rs
index b06e51157..b01469fa9 100644
--- a/cli/ops/runtime_compiler.rs
+++ b/cli/ops/runtime_compiler.rs
@@ -37,14 +37,14 @@ async fn op_compile(
super::check_unstable2(&state, "Deno.compile");
let args: CompileArgs = serde_json::from_value(args)?;
let cli_state = super::global_state2(&state);
- let global_state = cli_state.clone();
+ let program_state = cli_state.clone();
let permissions = {
let state = state.borrow();
state.borrow::<Permissions>().clone()
};
let fut = if args.bundle {
runtime_bundle(
- &global_state,
+ &program_state,
permissions,
&args.root_name,
&args.sources,
@@ -53,7 +53,7 @@ async fn op_compile(
.boxed_local()
} else {
runtime_compile(
- &global_state,
+ &program_state,
permissions,
&args.root_name,
&args.sources,
@@ -79,8 +79,8 @@ async fn op_transpile(
super::check_unstable2(&state, "Deno.transpile");
let args: TranspileArgs = serde_json::from_value(args)?;
let cli_state = super::global_state2(&state);
- let global_state = cli_state.clone();
+ let program_state = cli_state.clone();
let result =
- runtime_transpile(global_state, &args.sources, &args.options).await?;
+ runtime_transpile(program_state, &args.sources, &args.options).await?;
Ok(result)
}