From e3eae662f3d753141571bd132ccb199f95c745ea Mon Sep 17 00:00:00 2001 From: Nayeem Rahman Date: Mon, 6 Jun 2022 19:26:57 +0100 Subject: 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). --- ext/console/02_console.js | 1 + 1 file changed, 1 insertion(+) (limited to 'ext') 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); -- cgit v1.2.3