From 58f41c9fc997c1b9c640bf926cf016bfca2fc644 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E7=91=9E?= <2896402717@qq.com> Date: Wed, 27 Nov 2024 23:24:49 +0800 Subject: [PATCH] fix(node/fs):delete unnecessary code --- ext/node/polyfills/internal/fs/handle.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/ext/node/polyfills/internal/fs/handle.ts b/ext/node/polyfills/internal/fs/handle.ts index c8684f054a..9ec0fc97e2 100644 --- a/ext/node/polyfills/internal/fs/handle.ts +++ b/ext/node/polyfills/internal/fs/handle.ts @@ -149,9 +149,6 @@ export class FileHandle extends EventEmitter { stat(options?: { bigint: boolean }): Promise { return fsCall(promises.fstat, this, options); } - sync(): Promise { - return promises.fsync(this.fd); - } } function fsCall(fn, handle, ...args) {