From 31ecc09b5ae38531cb63680cc40b89d01d8635df Mon Sep 17 00:00:00 2001 From: Asher Gomez Date: Wed, 4 Sep 2024 19:34:40 +1000 Subject: BREAKING(io): remove `Deno.read[Sync]()` (#25409) Towards #22079 Signed-off-by: Asher Gomez --- cli/bench/deno_common.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'cli/bench') diff --git a/cli/bench/deno_common.js b/cli/bench/deno_common.js index ba88c79ca..369333391 100644 --- a/cli/bench/deno_common.js +++ b/cli/bench/deno_common.js @@ -46,8 +46,7 @@ Deno.bench("b64_rt_short", { n: 1e6 }, () => { const buf = new Uint8Array(100); const file = Deno.openSync("/dev/zero"); Deno.bench("read_zero", { n: 5e5 }, () => { - // deno-lint-ignore no-deprecated-deno-api - Deno.readSync(file.rid, buf); + file.readSync(buf); }); } -- cgit v1.2.3