diff options
Diffstat (limited to 'cli/ops')
-rw-r--r-- | cli/ops/compiler.rs | 6 | ||||
-rw-r--r-- | cli/ops/runtime_compiler.rs | 8 |
2 files changed, 7 insertions, 7 deletions
diff --git a/cli/ops/compiler.rs b/cli/ops/compiler.rs index 015c77c4e..9e8895519 100644 --- a/cli/ops/compiler.rs +++ b/cli/ops/compiler.rs @@ -112,7 +112,7 @@ fn op_fetch_source_files( let resolved_specifier = ModuleSpecifier::resolve_url(&specifier) .expect("Invalid specifier"); file_fetcher_ - .fetch_source_file_async(&resolved_specifier, ref_specifier_) + .fetch_source_file(&resolved_specifier, ref_specifier_) .await } .boxed_local() @@ -130,7 +130,7 @@ fn op_fetch_source_files( let types_specifier = ModuleSpecifier::from(types_url); global_state .file_fetcher - .fetch_source_file_async(&types_specifier, ref_specifier.clone()) + .fetch_source_file(&types_specifier, ref_specifier.clone()) .await .map_err(OpError::from)? } @@ -143,7 +143,7 @@ fn op_fetch_source_files( msg::MediaType::Wasm => { global_state .wasm_compiler - .compile_async(global_state.clone(), &file) + .compile(global_state.clone(), &file) .await .map_err(|e| OpError::other(e.to_string()))? .code diff --git a/cli/ops/runtime_compiler.rs b/cli/ops/runtime_compiler.rs index 056056746..87702b7ad 100644 --- a/cli/ops/runtime_compiler.rs +++ b/cli/ops/runtime_compiler.rs @@ -1,7 +1,7 @@ // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. use super::dispatch_json::{Deserialize, JsonOp, Value}; -use crate::compilers::runtime_compile_async; -use crate::compilers::runtime_transpile_async; +use crate::compilers::runtime_compile; +use crate::compilers::runtime_transpile; use crate::op_error::OpError; use crate::state::State; use deno_core::*; @@ -27,7 +27,7 @@ fn op_compile( _zero_copy: Option<ZeroCopyBuf>, ) -> Result<JsonOp, OpError> { let args: CompileArgs = serde_json::from_value(args)?; - Ok(JsonOp::Async(runtime_compile_async( + Ok(JsonOp::Async(runtime_compile( state.borrow().global_state.clone(), &args.root_name, &args.sources, @@ -48,7 +48,7 @@ fn op_transpile( _zero_copy: Option<ZeroCopyBuf>, ) -> Result<JsonOp, OpError> { let args: TranspileArgs = serde_json::from_value(args)?; - Ok(JsonOp::Async(runtime_transpile_async( + Ok(JsonOp::Async(runtime_transpile( state.borrow().global_state.clone(), &args.sources, &args.options, |