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