summaryrefslogtreecommitdiff
path: root/runtime/js
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/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(),
})
}`;