summaryrefslogtreecommitdiff
path: root/cli/compilers/wasm.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/compilers/wasm.rs')
-rw-r--r--cli/compilers/wasm.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/cli/compilers/wasm.rs b/cli/compilers/wasm.rs
index 6b8da100a..c1c179f62 100644
--- a/cli/compilers/wasm.rs
+++ b/cli/compilers/wasm.rs
@@ -52,9 +52,8 @@ impl WasmCompiler {
let entry_point =
ModuleSpecifier::resolve_url_or_path("./__$deno$wasm_compiler.ts")
.unwrap();
- let worker_state =
- ThreadSafeState::new(global_state.clone(), None, entry_point)
- .expect("Unable to create worker state");
+ let worker_state = State::new(global_state.clone(), None, entry_point)
+ .expect("Unable to create worker state");
// Count how many times we start the compiler worker.
global_state