summaryrefslogtreecommitdiff
path: root/runtime/js/40_files.js
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2022-02-15 13:59:04 +0100
committerGitHub <noreply@github.com>2022-02-15 13:59:04 +0100
commit9b5e336c3d9b9c9d3b520ddb2ff80502b155ed3f (patch)
treea07abb2c69bcb0b2fd941a446675b82818725340 /runtime/js/40_files.js
parentbdc8006a362b4f95107a25ca816dcdedb7f44e4a (diff)
feat: Add Deno.FsFile, deprecate Deno.File (#13660)
Diffstat (limited to 'runtime/js/40_files.js')
-rw-r--r--runtime/js/40_files.js9
1 files changed, 5 insertions, 4 deletions
diff --git a/runtime/js/40_files.js b/runtime/js/40_files.js
index b0d651d5c..8aa0a4972 100644
--- a/runtime/js/40_files.js
+++ b/runtime/js/40_files.js
@@ -41,7 +41,7 @@
{ path: pathFromURL(path), options, mode },
);
- return new File(rid);
+ return new FsFile(rid);
}
async function open(
@@ -55,7 +55,7 @@
{ path: pathFromURL(path), options, mode },
);
- return new File(rid);
+ return new FsFile(rid);
}
function createSync(path) {
@@ -76,7 +76,7 @@
});
}
- class File {
+ class FsFile {
#rid = 0;
#readable;
@@ -272,7 +272,8 @@
stdin,
stdout,
stderr,
- File,
+ File: FsFile,
+ FsFile,
create,
createSync,
open,