summaryrefslogtreecommitdiff
path: root/runtime/worker_bootstrap.rs
diff options
context:
space:
mode:
authorAntonio Musolino <antoniomusolino007@gmail.com>2022-03-01 04:37:50 +0100
committerGitHub <noreply@github.com>2022-03-01 12:37:50 +0900
commit6a030a5396f9c838b4d4523f43ab2d9e2f502e04 (patch)
tree2ad4c356bb5c5ec5b91dbcd5dd9e3442fed0c2bc /runtime/worker_bootstrap.rs
parenta41d399f5f728c73b652c3f5f5c2bf57d2054153 (diff)
fix(runtime): disable console color for non tty stdout (#13782)
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 9bd519d73..05bde731f 100644
--- a/runtime/worker_bootstrap.rs
+++ b/runtime/worker_bootstrap.rs
@@ -15,6 +15,7 @@ pub struct BootstrapOptions {
pub location: Option<ModuleSpecifier>,
/// Sets `Deno.noColor` in JS runtime.
pub no_color: bool,
+ pub is_tty: bool,
/// Sets `Deno.version.deno` in JS runtime.
pub runtime_version: String,
/// Sets `Deno.version.typescript` in JS runtime.
@@ -33,6 +34,7 @@ impl BootstrapOptions {
"denoVersion": self.runtime_version,
"location": self.location,
"noColor": self.no_color,
+ "isTty": self.is_tty,
"tsVersion": self.ts_version,
"unstableFlag": self.unstable,
// Web worker only