diff options
author | Kevin (Kun) "Kassimo" Qian <kevinkassimo@gmail.com> | 2020-01-16 16:42:58 -0800 |
---|---|---|
committer | Ry Dahl <ry@tinyclouds.org> | 2020-01-16 19:42:58 -0500 |
commit | 0a78bfb836f520d3709a32c8a978d08d33198d83 (patch) | |
tree | aa96e2164ea39d8856a4eca7eeb5c21388d8a4b7 /cli/js/console.ts | |
parent | cad7b3e4fe4e368882628dbde8512f36d142098b (diff) |
Add Deno.symbols and move internal fields for test (#3693)
Diffstat (limited to 'cli/js/console.ts')
-rw-r--r-- | cli/js/console.ts | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/cli/js/console.ts b/cli/js/console.ts index f366eb776..f5830b4a1 100644 --- a/cli/js/console.ts +++ b/cli/js/console.ts @@ -4,6 +4,7 @@ import { TypedArray } from "./types.ts"; import { TextEncoder } from "./text_encoding.ts"; import { File, stdout } from "./files.ts"; import { cliTable } from "./console_table.ts"; +import { exposeForTest } from "./internals.ts"; type ConsoleContext = Set<unknown>; type ConsoleOptions = Partial<{ @@ -363,9 +364,7 @@ function createObjectString( } } -/** TODO Do not expose this from "deno" namespace. - * @internal - */ +/** @internal */ export function stringifyArgs( args: unknown[], options: ConsoleOptions = {} @@ -785,3 +784,7 @@ export function inspect(value: unknown, options?: ConsoleOptions): string { ); } } + +// Expose these fields to internalObject for tests. +exposeForTest("Console", Console); +exposeForTest("stringifyArgs", stringifyArgs); |