summaryrefslogtreecommitdiff
path: root/runtime/js/99_main.js
diff options
context:
space:
mode:
authorLeo Kettmeir <crowlkats@toaxl.com>2023-04-30 09:24:13 +0200
committerGitHub <noreply@github.com>2023-04-30 07:24:13 +0000
commit9c8ebce3dcc784f1a6ecd29d5fe0b3d35256ab82 (patch)
treee423a712e05448d5c895777a810abdf7c9be59ae /runtime/js/99_main.js
parent64e072e499d36ca824db297a493667415ed67cdf (diff)
refactor: merge Deno & Node inspectors (#18691)
Diffstat (limited to 'runtime/js/99_main.js')
-rw-r--r--runtime/js/99_main.js3
1 files changed, 2 insertions, 1 deletions
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(),
})
}`;