From 4c7f53b04bc631525a4512576fc0d7dca05dec09 Mon Sep 17 00:00:00 2001 From: Casper Beyer Date: Fri, 2 Oct 2020 21:51:08 +0800 Subject: [PATCH] fix(cli/repl): enable colors on inspected values (#7798) --- cli/repl.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/repl.rs b/cli/repl.rs index 1c723ec596..5daa122615 100644 --- a/cli/repl.rs +++ b/cli/repl.rs @@ -207,7 +207,7 @@ pub async fn run( "Runtime.callFunctionOn".to_string(), Some(json!({ "executionContextId": context_id, - "functionDeclaration": "function (object) { return Deno[Deno.internal].inspectArgs(['%o', object]); }", + "functionDeclaration": "function (object) { return Deno[Deno.internal].inspectArgs(['%o', object], { colors: true}); }", "arguments": [ evaluate_result, ],