diff options
author | Asher Gomez <ashersaupingomez@gmail.com> | 2024-09-05 20:37:28 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-05 20:37:28 +1000 |
commit | c73b4a0877ca134a05262dc15524f54ff471cc3a (patch) | |
tree | 25522be4b43ee2209ee924099f6f26bf3c053dad /ext/node/polyfills/_fs/_fs_writev.mjs | |
parent | b01578ae1fc1da65ac38daec31a23c9ef652aa74 (diff) |
BREAKING(fs): remove `Deno.seek[Sync]()` (#25449)
Towards #22079
Diffstat (limited to 'ext/node/polyfills/_fs/_fs_writev.mjs')
-rw-r--r-- | ext/node/polyfills/_fs/_fs_writev.mjs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/node/polyfills/_fs/_fs_writev.mjs b/ext/node/polyfills/_fs/_fs_writev.mjs index 2f65c570e..055bce0b2 100644 --- a/ext/node/polyfills/_fs/_fs_writev.mjs +++ b/ext/node/polyfills/_fs/_fs_writev.mjs @@ -9,7 +9,7 @@ import { validateBufferArray } from "ext:deno_node/internal/fs/utils.mjs"; import { getValidatedFd } from "ext:deno_node/internal/fs/utils.mjs"; import { maybeCallback } from "ext:deno_node/_fs/_fs_common.ts"; import * as io from "ext:deno_io/12_io.js"; -import * as fs from "ext:deno_fs/30_fs.js"; +import { op_fs_seek_async, op_fs_seek_sync } from "ext:core/ops"; export function writev(fd, buffers, position, callback) { const innerWritev = async (fd, buffers, position) => { @@ -23,7 +23,7 @@ export function writev(fd, buffers, position, callback) { } } if (typeof position === "number") { - await fs.seekSync(fd, position, io.SeekMode.Start); + await op_fs_seek_async(fd, position, io.SeekMode.Start); } const buffer = Buffer.concat(chunks); let currentOffset = 0; @@ -64,7 +64,7 @@ export function writevSync(fd, buffers, position) { } } if (typeof position === "number") { - fs.seekSync(fd, position, io.SeekMode.Start); + op_fs_seek_sync(fd, position, io.SeekMode.Start); } const buffer = Buffer.concat(chunks); let currentOffset = 0; |