summaryrefslogtreecommitdiff
path: root/runtime/worker_bootstrap.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 /runtime/worker_bootstrap.rs
parente7934432ced9674d23d31a4b6973398bd8c8d090 (diff)
perf(ext/console): avoid `wrapConsole` when not inspecting (#15931)
Diffstat (limited to 'runtime/worker_bootstrap.rs')
-rw-r--r--runtime/worker_bootstrap.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/runtime/worker_bootstrap.rs b/runtime/worker_bootstrap.rs
index 68f223be5..31e7c4382 100644
--- a/runtime/worker_bootstrap.rs
+++ b/runtime/worker_bootstrap.rs
@@ -21,6 +21,7 @@ pub struct BootstrapOptions {
pub ts_version: String,
pub unstable: bool,
pub user_agent: String,
+ pub inspect: bool,
}
impl BootstrapOptions {
@@ -44,6 +45,7 @@ impl BootstrapOptions {
"target": env!("TARGET"),
"v8Version": deno_core::v8_version(),
"userAgent": self.user_agent,
+ "inspectFlag": self.inspect,
});
serde_json::to_string_pretty(&payload).unwrap()
}