summaryrefslogtreecommitdiff
path: root/cli/compilers/wasm.rs
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2020-02-06 23:05:02 -0500
committerGitHub <noreply@github.com>2020-02-06 23:05:02 -0500
commitd9c84eb91eecdf1225091e4d2bea8e4c6a076504 (patch)
treef9d65e93a5ae4ce2cfd4ebf0c6b7fe7fe1da822f /cli/compilers/wasm.rs
parent522e856347b27b939dac92eb592ce64d86a96c03 (diff)
Rename ThreadSafeGlobalState to GlobalState (#3907)
simplify
Diffstat (limited to 'cli/compilers/wasm.rs')
-rw-r--r--cli/compilers/wasm.rs6
1 files changed, 3 insertions, 3 deletions
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<CompiledModule, ErrBox> {
let cache = self.cache.clone();