From d9c84eb91eecdf1225091e4d2bea8e4c6a076504 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Thu, 6 Feb 2020 23:05:02 -0500 Subject: Rename ThreadSafeGlobalState to GlobalState (#3907) simplify --- cli/compilers/wasm.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cli/compilers/wasm.rs') diff --git a/cli/compilers/wasm.rs b/cli/compilers/wasm.rs index 63eebadb3..6b8da100a 100644 --- a/cli/compilers/wasm.rs +++ b/cli/compilers/wasm.rs @@ -2,7 +2,7 @@ use super::compiler_worker::CompilerWorker; use crate::compilers::CompiledModule; use crate::file_fetcher::SourceFile; -use crate::global_state::ThreadSafeGlobalState; +use crate::global_state::GlobalState; use crate::startup_data; use crate::state::*; use deno_core::ErrBox; @@ -48,7 +48,7 @@ pub struct WasmCompiler { impl WasmCompiler { /// Create a new V8 worker with snapshot of WASM compiler and setup compiler's runtime. - fn setup_worker(global_state: ThreadSafeGlobalState) -> CompilerWorker { + fn setup_worker(global_state: GlobalState) -> CompilerWorker { let entry_point = ModuleSpecifier::resolve_url_or_path("./__$deno$wasm_compiler.ts") .unwrap(); @@ -73,7 +73,7 @@ impl WasmCompiler { pub async fn compile_async( &self, - global_state: ThreadSafeGlobalState, + global_state: GlobalState, source_file: &SourceFile, ) -> Result { let cache = self.cache.clone(); -- cgit v1.2.3