summaryrefslogtreecommitdiff
path: root/cli/worker.rs
diff options
context:
space:
mode:
authorDivy Srivastava <dj.srivastava23@gmail.com>2022-09-17 15:34:43 +0530
committerGitHub <noreply@github.com>2022-09-17 15:34:43 +0530
commit6154188786108b253e8c775f728783e9ffa5293f (patch)
treec39fd66203fe839d67dbd34309c5045abf1ce1ed /cli/worker.rs
parente7934432ced9674d23d31a4b6973398bd8c8d090 (diff)
perf(ext/console): avoid `wrapConsole` when not inspecting (#15931)
Diffstat (limited to 'cli/worker.rs')
-rw-r--r--cli/worker.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/cli/worker.rs b/cli/worker.rs
index 9b505e4f0..f46c2efce 100644
--- a/cli/worker.rs
+++ b/cli/worker.rs
@@ -410,6 +410,7 @@ pub async fn create_main_worker(
ts_version: version::TYPESCRIPT.to_string(),
unstable: ps.options.unstable(),
user_agent: version::get_user_agent(),
+ inspect: ps.options.is_inspecting(),
},
extensions,
unsafely_ignore_certificate_errors: ps
@@ -515,6 +516,7 @@ fn create_web_worker_callback(
ts_version: version::TYPESCRIPT.to_string(),
unstable: ps.options.unstable(),
user_agent: version::get_user_agent(),
+ inspect: ps.options.is_inspecting(),
},
extensions,
unsafely_ignore_certificate_errors: ps