summaryrefslogtreecommitdiff
path: root/cli/js/console_test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/js/console_test.ts')
-rw-r--r--cli/js/console_test.ts10
1 files changed, 7 insertions, 3 deletions
diff --git a/cli/js/console_test.ts b/cli/js/console_test.ts
index 126ad868b..b80dd8284 100644
--- a/cli/js/console_test.ts
+++ b/cli/js/console_test.ts
@@ -4,15 +4,19 @@ import { assert, assertEquals, test } from "./test_util.ts";
// Some of these APIs aren't exposed in the types and so we have to cast to any
// in order to "trick" TypeScript.
const {
- Console,
- customInspect,
- stringifyArgs,
inspect,
writeSync,
stdout
// eslint-disable-next-line @typescript-eslint/no-explicit-any
} = Deno as any;
+const customInspect = Deno.symbols.customInspect;
+const {
+ Console,
+ stringifyArgs
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
+} = Deno[Deno.symbols.internal] as any;
+
function stringify(...args: unknown[]): string {
return stringifyArgs(args).replace(/\n$/, "");
}