summaryrefslogtreecommitdiff
path: root/cli/repl.rs
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2020-10-15 12:32:03 +0200
committerGitHub <noreply@github.com>2020-10-15 12:32:03 +0200
commitbd0c64b9aeeb75eea25402b0ebd5aecc2cec8e3a (patch)
treef9b52b421b9cd32520359223910a388c95f4d97f /cli/repl.rs
parent81635c59e66b81a4c85aed6775aff4beedf71f14 (diff)
Reland feat(cli/console): inspect with colors regardless of Deno.noColor (#7976)
Diffstat (limited to 'cli/repl.rs')
-rw-r--r--cli/repl.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/repl.rs b/cli/repl.rs
index 506a79f0d..3540b422b 100644
--- a/cli/repl.rs
+++ b/cli/repl.rs
@@ -378,7 +378,7 @@ pub async fn run(
"Runtime.callFunctionOn",
Some(json!({
"executionContextId": context_id,
- "functionDeclaration": "function (object) { return Deno[Deno.internal].inspectArgs(['%o', object], { colors: true}); }",
+ "functionDeclaration": "function (object) { return Deno[Deno.internal].inspectArgs(['%o', object], { colors: !Deno.noColor }); }",
"arguments": [
evaluate_result,
],