summaryrefslogtreecommitdiff
path: root/cli/tsc.rs
diff options
context:
space:
mode:
authorBert Belder <bertbelder@gmail.com>2020-05-12 21:08:22 +0200
committerBert Belder <bertbelder@gmail.com>2020-05-13 00:12:46 +0200
commite34a3b61f449cf6197b6d701770a85d9205c2a7b (patch)
treeccafaaf7e28197c7580028cb879ead110d6ed2b2 /cli/tsc.rs
parente90c95b465e361a0f06016ad0f16582e7f9a54a6 (diff)
Make --inspect-brk pause on the first line of _user_ code (#5250)
Diffstat (limited to 'cli/tsc.rs')
-rw-r--r--cli/tsc.rs11
1 files changed, 3 insertions, 8 deletions
diff --git a/cli/tsc.rs b/cli/tsc.rs
index f71fe3747..ba898b456 100644
--- a/cli/tsc.rs
+++ b/cli/tsc.rs
@@ -15,7 +15,6 @@ use crate::permissions::Permissions;
use crate::source_maps::SourceMapGetter;
use crate::startup_data;
use crate::state::State;
-use crate::state::*;
use crate::tokio_util;
use crate::version;
use crate::web_worker::WebWorker;
@@ -351,13 +350,9 @@ impl TsCompiler {
) -> CompilerWorker {
let entry_point =
ModuleSpecifier::resolve_url_or_path("./__$deno$ts_compiler.ts").unwrap();
- let worker_state = State::new(
- global_state.clone(),
- Some(permissions),
- entry_point,
- DebugType::Internal,
- )
- .expect("Unable to create worker state");
+ let worker_state =
+ State::new(global_state.clone(), Some(permissions), entry_point, true)
+ .expect("Unable to create worker state");
// Count how many times we start the compiler worker.
global_state.compiler_starts.fetch_add(1, Ordering::SeqCst);