summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
author迷渡 <justjavac@gmail.com>2019-03-22 23:35:49 +0800
committerRyan Dahl <ry@tinyclouds.org>2019-03-22 11:35:49 -0400
commitefe9c18b459dbec71b213e8dc87e2e1b02477139 (patch)
treeb1a56849b5d31f9be360c1dd9404fc3f6c17aa4d /js
parent12753e492f924e32be2a74d94720213f1d5c6b66 (diff)
remove `console` constructor (#1985)
Diffstat (limited to 'js')
-rw-r--r--js/console_test.ts4
1 files changed, 1 insertions, 3 deletions
diff --git a/js/console_test.ts b/js/console_test.ts
index b20a60197..39ccad843 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$/, "");