diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2020-10-13 13:35:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-13 13:35:35 +0200 |
commit | 0bd3cea0ff6d2d4840c0df2938b5ae5c5d7cc4bd (patch) | |
tree | fa9a635db4d34e0a30e13d37f40a0d7a4f92f44a /cli/ops/runtime_compiler.rs | |
parent | 000ac5c40b71c38cc26a36e579fbb0936f0573d7 (diff) |
refactor(cli): rename GlobalState to ProgramState (#7914)
Diffstat (limited to 'cli/ops/runtime_compiler.rs')
-rw-r--r-- | cli/ops/runtime_compiler.rs | 10 |
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) } |