From efe9c18b459dbec71b213e8dc87e2e1b02477139 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=BF=B7=E6=B8=A1?= Date: Fri, 22 Mar 2019 23:35:49 +0800 Subject: [PATCH] remove `console` constructor (#1985) --- js/console_test.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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$/, "");