diff --git a/js/console_test.ts b/js/console_test.ts index b20a601973..39ccad8437 100644 --- a/js/console_test.ts +++ b/js/console_test.ts @@ -4,9 +4,7 @@ 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. // eslint-disable-next-line @typescript-eslint/no-explicit-any -const { Console, libdeno, stringifyArgs, inspect, write, stdout } = Deno as any; - -const console = new Console(libdeno.print); +const { Console, stringifyArgs, inspect, write, stdout } = Deno as any; function stringify(...args: unknown[]): string { return stringifyArgs(args).replace(/\n$/, "");