summaryrefslogtreecommitdiff
path: root/ext/node/polyfills/_fs/_fs_writeFile.ts
diff options
context:
space:
mode:
Diffstat (limited to 'ext/node/polyfills/_fs/_fs_writeFile.ts')
-rw-r--r--ext/node/polyfills/_fs/_fs_writeFile.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/node/polyfills/_fs/_fs_writeFile.ts b/ext/node/polyfills/_fs/_fs_writeFile.ts
index 40d368566..60b31897e 100644
--- a/ext/node/polyfills/_fs/_fs_writeFile.ts
+++ b/ext/node/polyfills/_fs/_fs_writeFile.ts
@@ -74,7 +74,7 @@ export function writeFile(
(async () => {
try {
file = isRid
- ? new FsFile(pathOrRid as number)
+ ? new FsFile(pathOrRid as number, Symbol.for("Deno.internal.FsFile"))
: await Deno.open(pathOrRid as string, openOptions);
// ignore mode because it's not supported on windows
@@ -139,7 +139,7 @@ export function writeFileSync(
let error: Error | null = null;
try {
file = isRid
- ? new FsFile(pathOrRid as number)
+ ? new FsFile(pathOrRid as number, Symbol.for("Deno.internal.FsFile"))
: Deno.openSync(pathOrRid as string, openOptions);
// ignore mode because it's not supported on windows