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/internal_binding | |
parent | b01578ae1fc1da65ac38daec31a23c9ef652aa74 (diff) |
BREAKING(fs): remove `Deno.seek[Sync]()` (#25449)
Towards #22079
Diffstat (limited to 'ext/node/polyfills/internal_binding')
-rw-r--r-- | ext/node/polyfills/internal_binding/node_file.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/node/polyfills/internal_binding/node_file.ts b/ext/node/polyfills/internal_binding/node_file.ts index c7b0bb7e6..6c134ec4b 100644 --- a/ext/node/polyfills/internal_binding/node_file.ts +++ b/ext/node/polyfills/internal_binding/node_file.ts @@ -30,7 +30,7 @@ import { assert } from "ext:deno_node/_util/asserts.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_sync } from "ext:core/ops"; /** * Write to the given file from the given buffer synchronously. @@ -63,7 +63,7 @@ export function writeBuffer( ); if (position) { - fs.seekSync(fd, position, io.SeekMode.Current); + op_fs_seek_sync(fd, position, io.SeekMode.Current); } const subarray = buffer.subarray(offset, offset + length); |