summaryrefslogtreecommitdiff
path: root/ext/console/02_console.js
diff options
context:
space:
mode:
authorNayeem Rahman <nayeemrmn99@gmail.com>2022-06-06 19:26:57 +0100
committerGitHub <noreply@github.com>2022-06-06 20:26:57 +0200
commite3eae662f3d753141571bd132ccb199f95c745ea (patch)
treee0cdad78f409c9b221b909d0d7dfcee286e6325f /ext/console/02_console.js
parent1081659be176a59512a7e9e3dc93e13046a26aec (diff)
fix: Format non-error exceptions (#14604)
This commit adds "Deno.core.setFormatExceptionCallback" which can be used to provide custom formatting for errors. It is useful in cases when user throws something that is non-Error (eg. a string, plain object, etc).
Diffstat (limited to 'ext/console/02_console.js')
-rw-r--r--ext/console/02_console.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/console/02_console.js b/ext/console/02_console.js
index 9b54a64a1..638047b3a 100644
--- a/ext/console/02_console.js
+++ b/ext/console/02_console.js
@@ -2322,5 +2322,6 @@
inspect,
wrapConsole,
createFilteredInspectProxy,
+ quoteString,
};
})(this);