From c73b4a0877ca134a05262dc15524f54ff471cc3a Mon Sep 17 00:00:00 2001 From: Asher Gomez Date: Thu, 5 Sep 2024 20:37:28 +1000 Subject: BREAKING(fs): remove `Deno.seek[Sync]()` (#25449) Towards #22079 --- ext/node/polyfills/internal_binding/node_file.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext/node/polyfills/internal_binding') 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); -- cgit v1.2.3