diff options
author | Kenta Moriuchi <moriken@kimamass.com> | 2023-06-06 04:57:01 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-05 15:57:01 -0400 |
commit | d54ef02dfe4455c043c3ccb3d1d15e5fcc302756 (patch) | |
tree | d3f0a84740bbc26681a8340066b44e5b15dc9255 /ext/console/01_console.js | |
parent | 11dd5a0ae73b4d3612de6422893a25232f930b84 (diff) |
chore: update deno_lint to 0.46.0 (#19372)
Diffstat (limited to 'ext/console/01_console.js')
-rw-r--r-- | ext/console/01_console.js | 3 |
1 files changed, 2 insertions, 1 deletions
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( |