diff options
Diffstat (limited to 'js/console.ts')
-rw-r--r-- | js/console.ts | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/js/console.ts b/js/console.ts index 3669a1d3b..ec7238cb9 100644 --- a/js/console.ts +++ b/js/console.ts @@ -4,8 +4,6 @@ import { TypedArray } from "./types"; import { TextEncoder } from "./text_encoding"; import { File, stdout } from "./files"; import { cliTable } from "./console_table"; -import { formatError } from "./format_error"; -import { core } from "./core"; type ConsoleContext = Set<unknown>; type ConsoleOptions = Partial<{ @@ -323,8 +321,7 @@ function createObjectString( ...args: [ConsoleContext, number, number] ): string { if (value instanceof Error) { - const errorJSON = core.errorToJSON(value); - return formatError(errorJSON); + return String(value.stack); } else if (Array.isArray(value)) { return createArrayString(value, ...args); } else if (value instanceof Number) { |