summaryrefslogtreecommitdiff
path: root/ext/node/polyfills/_fs/_fs_fsync.ts
diff options
context:
space:
mode:
Diffstat (limited to 'ext/node/polyfills/_fs/_fs_fsync.ts')
-rw-r--r--ext/node/polyfills/_fs/_fs_fsync.ts7
1 files changed, 5 insertions, 2 deletions
diff --git a/ext/node/polyfills/_fs/_fs_fsync.ts b/ext/node/polyfills/_fs/_fs_fsync.ts
index 942aecf6a..75d4b3756 100644
--- a/ext/node/polyfills/_fs/_fs_fsync.ts
+++ b/ext/node/polyfills/_fs/_fs_fsync.ts
@@ -10,9 +10,12 @@ export function fsync(
fd: number,
callback: CallbackWithError,
) {
- new FsFile(fd).sync().then(() => callback(null), callback);
+ new FsFile(fd, Symbol.for("Deno.internal.FsFile")).sync().then(
+ () => callback(null),
+ callback,
+ );
}
export function fsyncSync(fd: number) {
- new FsFile(fd).syncSync();
+ new FsFile(fd, Symbol.for("Deno.internal.FsFile")).syncSync();
}