From d54ef02dfe4455c043c3ccb3d1d15e5fcc302756 Mon Sep 17 00:00:00 2001 From: Kenta Moriuchi Date: Tue, 6 Jun 2023 04:57:01 +0900 Subject: chore: update deno_lint to 0.46.0 (#19372) --- ext/console/01_console.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ext/console') diff --git a/ext/console/01_console.js b/ext/console/01_console.js index 11b6c549c..6cf3c6dca 100644 --- a/ext/console/01_console.js +++ b/ext/console/01_console.js @@ -37,6 +37,7 @@ const { Error, ErrorCaptureStackTrace, ErrorPrototype, + ErrorPrototypeToString, FunctionPrototypeBind, FunctionPrototypeCall, FunctionPrototypeToString, @@ -1578,7 +1579,7 @@ function inspectError(value, ctx) { if (stack?.includes("\n at")) { finalMessage += stack; } else { - finalMessage += `[${stack || value.toString()}]`; + finalMessage += `[${stack || ErrorPrototypeToString(value)}]`; } } finalMessage += ArrayPrototypeJoin( -- cgit v1.2.3