diff options
Diffstat (limited to 'ext/node/polyfills/_fs/_fs_fstat.ts')
-rw-r--r-- | ext/node/polyfills/_fs/_fs_fstat.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/node/polyfills/_fs/_fs_fstat.ts b/ext/node/polyfills/_fs/_fs_fstat.ts index fe97235bf..c1722487e 100644 --- a/ext/node/polyfills/_fs/_fs_fstat.ts +++ b/ext/node/polyfills/_fs/_fs_fstat.ts @@ -41,7 +41,7 @@ export function fstat( if (!callback) throw new Error("No callback function supplied"); - new FsFile(fd).stat().then( + new FsFile(fd, Symbol.for("Deno.internal.FsFile")).stat().then( (stat) => callback(null, CFISBIS(stat, options.bigint)), (err) => callback(err), ); @@ -60,6 +60,6 @@ export function fstatSync( fd: number, options?: statOptions, ): Stats | BigIntStats { - const origin = new FsFile(fd).statSync(); + const origin = new FsFile(fd, Symbol.for("Deno.internal.FsFile")).statSync(); return CFISBIS(origin, options?.bigint || false); } |