diff options
author | Asher Gomez <ashersaupingomez@gmail.com> | 2024-03-21 04:39:25 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-20 10:39:25 -0700 |
commit | 9593cf2852d83d0629bc97428ac83a962cb2eb09 (patch) | |
tree | c09713023787e20f40872f0f585f15c11e70cf22 /cli/bench | |
parent | d66154d42a8e0f044ef8cab7947c5a4909782184 (diff) |
chore(ext/io): remove use of deprecated `Deno.writeSync()` (#22872)
Diffstat (limited to 'cli/bench')
-rw-r--r-- | cli/bench/deno_common.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/bench/deno_common.js b/cli/bench/deno_common.js index 7d4ebb37c..554015c6c 100644 --- a/cli/bench/deno_common.js +++ b/cli/bench/deno_common.js @@ -55,7 +55,7 @@ Deno.bench("b64_rt_short", { n: 1e6 }, () => { const dataChunk = new Uint8Array(100); const file = Deno.openSync("/dev/null", { write: true }); Deno.bench("write_null", { n: 5e5 }, () => { - Deno.writeSync(file.rid, dataChunk); + file.writeSync(dataChunk); }); } |