From 51e0bfda3c5df4fa1f1b36301193038ed6aaf7bf Mon Sep 17 00:00:00 2001 From: Luca Casonato Date: Mon, 12 Jul 2021 19:44:42 +0200 Subject: chore(runtime): deprecate `Deno.copy` (#11369) --- cli/tests/cat.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cli/tests/cat.ts') diff --git a/cli/tests/cat.ts b/cli/tests/cat.ts index a5b38fccd..0cfd99d22 100644 --- a/cli/tests/cat.ts +++ b/cli/tests/cat.ts @@ -1,8 +1,9 @@ +import { copy } from "../../test_util/std/io/util.ts"; async function main(): Promise { for (let i = 1; i < Deno.args.length; i++) { const filename = Deno.args[i]; const file = await Deno.open(filename); - await Deno.copy(file, Deno.stdout); + await copy(file, Deno.stdout); } } -- cgit v1.2.3