Skip to content

Commit

Permalink
remove console constructor (denoland#1985)
Browse files Browse the repository at this point in the history
  • Loading branch information
justjavac authored and ry committed Mar 22, 2019
1 parent 12753e4 commit efe9c18
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions js/console_test.ts
Expand Up @@ -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$/, "");
Expand Down

0 comments on commit efe9c18

Please sign in to comment.