From 9c8ebce3dcc784f1a6ecd29d5fe0b3d35256ab82 Mon Sep 17 00:00:00 2001 From: Leo Kettmeir Date: Sun, 30 Apr 2023 09:24:13 +0200 Subject: refactor: merge Deno & Node inspectors (#18691) --- runtime/js/99_main.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'runtime/js') diff --git a/runtime/js/99_main.js b/runtime/js/99_main.js index fa16cc1f4..b6dab121c 100644 --- a/runtime/js/99_main.js +++ b/runtime/js/99_main.js @@ -46,6 +46,7 @@ import * as os from "ext:runtime/30_os.js"; import * as timers from "ext:deno_web/02_timers.js"; import * as colors from "ext:deno_console/01_colors.js"; import { + getDefaultInspectOptions, inspectArgs, quoteString, wrapConsole, @@ -218,7 +219,7 @@ function formatException(error) { return null; } else if (typeof error == "string") { return `Uncaught ${ - inspectArgs([quoteString(error)], { + inspectArgs([quoteString(error, getDefaultInspectOptions())], { colors: !colors.getNoColor(), }) }`; -- cgit v1.2.3