From c0cb198114ccc2dc4fa2764d307ad985c456882a Mon Sep 17 00:00:00 2001 From: Bert Belder Date: Fri, 3 Apr 2020 19:40:11 +0200 Subject: Make inspector more robust, add --inspect-brk support (#4552) --- cli/compilers/ts.rs | 5 +++-- cli/compilers/wasm.rs | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'cli/compilers') diff --git a/cli/compilers/ts.rs b/cli/compilers/ts.rs index a74e4a096..641f16bca 100644 --- a/cli/compilers/ts.rs +++ b/cli/compilers/ts.rs @@ -255,8 +255,9 @@ impl TsCompiler { fn setup_worker(global_state: GlobalState) -> CompilerWorker { let entry_point = ModuleSpecifier::resolve_url_or_path("./__$deno$ts_compiler.ts").unwrap(); - let worker_state = State::new(global_state.clone(), None, entry_point) - .expect("Unable to create worker state"); + let worker_state = + State::new(global_state.clone(), None, entry_point, DebugType::Internal) + .expect("Unable to create worker state"); // Count how many times we start the compiler worker. global_state.compiler_starts.fetch_add(1, Ordering::SeqCst); diff --git a/cli/compilers/wasm.rs b/cli/compilers/wasm.rs index bd22a2523..ff7a04097 100644 --- a/cli/compilers/wasm.rs +++ b/cli/compilers/wasm.rs @@ -56,8 +56,9 @@ impl WasmCompiler { let entry_point = ModuleSpecifier::resolve_url_or_path("./__$deno$wasm_compiler.ts") .unwrap(); - let worker_state = State::new(global_state.clone(), None, entry_point) - .expect("Unable to create worker state"); + let worker_state = + State::new(global_state.clone(), None, entry_point, DebugType::Internal) + .expect("Unable to create worker state"); // Count how many times we start the compiler worker. global_state.compiler_starts.fetch_add(1, Ordering::SeqCst); -- cgit v1.2.3