summaryrefslogtreecommitdiff
path: root/js/console.ts
diff options
context:
space:
mode:
authorKitson Kelly <me@kitsonkelly.com>2019-03-26 23:22:07 +1100
committerRyan Dahl <ry@tinyclouds.org>2019-03-26 08:22:07 -0400
commitc43cfedeba5d6ac96e1b1febed8549e750606e3f (patch)
tree7b3799259895acadf25294704ea03a9465051e9c /js/console.ts
parented2977d3c0e9ab3295a3bb47b844b2953d608197 (diff)
namespace reorg: libdeno and DenoCore to Deno.core (#1998)
Diffstat (limited to 'js/console.ts')
-rw-r--r--js/console.ts4
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);