summaryrefslogtreecommitdiff
path: root/ext/fs/30_fs.js
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2024-01-26 00:36:03 +0100
committerGitHub <noreply@github.com>2024-01-26 00:36:03 +0100
commit9951506506ded805ff5eb09b52fb0235c0c3df79 (patch)
tree97be72e40de6c221d7db328433053bc17a6933ba /ext/fs/30_fs.js
parent0b0fb94ce2489da642cffd82e0498446d4a1fe1f (diff)
fix(node): remove deprecation warnings (#22120)
Closes https://github.com/denoland/deno/issues/22116
Diffstat (limited to 'ext/fs/30_fs.js')
-rw-r--r--ext/fs/30_fs.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/fs/30_fs.js b/ext/fs/30_fs.js
index 2e7eba242..0a3e1ceb9 100644
--- a/ext/fs/30_fs.js
+++ b/ext/fs/30_fs.js
@@ -655,12 +655,14 @@ function create(path) {
}
class FsFile {
+ [SymbolFor("Deno.internal.rid")] = 0;
#rid = 0;
#readable;
#writable;
constructor(rid, symbol) {
+ this[SymbolFor("Deno.internal.rid")] = rid;
this.#rid = rid;
if (!symbol || symbol !== SymbolFor("Deno.internal.FsFile")) {
internals.warnOnDeprecatedApi(