mirror of
https://github.com/denoland/deno
synced 2024-08-27 20:09:17 +00:00
remove console
constructor (#1985)
This commit is contained in:
parent
12753e492f
commit
efe9c18b45
|
@ -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$/, "");
|
||||
|
|
Loading…
Reference in a new issue