summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAsher Gomez <ashersaupingomez@gmail.com>2024-03-27 23:45:19 +1100
committerGitHub <noreply@github.com>2024-03-27 13:45:19 +0100
commit3462248571fd3193106a0427b3d8f585f9716c48 (patch)
tree265f2e3d87daac1c582cb9c211cb1f1eb3afe981
parentc9e10ededaea59e1108c8f2456b0cb7da0269270 (diff)
FUTURE(ext/fs): remove `Deno.FsFile.rid` (#23087)
Continues work from #23075. Towards #23089.
-rw-r--r--runtime/js/99_main.js1
-rw-r--r--tests/specs/future/runtime_api/__test__.jsonc2
-rw-r--r--tests/specs/future/runtime_api/main.js4
-rw-r--r--tests/specs/future/runtime_api/main.out1
4 files changed, 7 insertions, 1 deletions
diff --git a/runtime/js/99_main.js b/runtime/js/99_main.js
index 9f98061a0..f65bd2b01 100644
--- a/runtime/js/99_main.js
+++ b/runtime/js/99_main.js
@@ -790,6 +790,7 @@ function bootstrapMainRuntime(runtimeOptions, warmup = false) {
delete Deno.ftruncateSync;
delete Deno.flock;
delete Deno.flockSync;
+ delete Deno.FsFile.prototype.rid;
delete Deno.funlock;
delete Deno.funlockSync;
delete Deno.iter;
diff --git a/tests/specs/future/runtime_api/__test__.jsonc b/tests/specs/future/runtime_api/__test__.jsonc
index 71a724d89..eb833195d 100644
--- a/tests/specs/future/runtime_api/__test__.jsonc
+++ b/tests/specs/future/runtime_api/__test__.jsonc
@@ -1,5 +1,5 @@
{
- "args": "run main.js",
+ "args": "run -A main.js",
"output": "main.out",
"envs": {
"DENO_FUTURE": "1"
diff --git a/tests/specs/future/runtime_api/main.js b/tests/specs/future/runtime_api/main.js
index 6a0daff22..5275ad878 100644
--- a/tests/specs/future/runtime_api/main.js
+++ b/tests/specs/future/runtime_api/main.js
@@ -9,6 +9,10 @@ console.log("Deno.ftruncate is", Deno.ftruncate);
console.log("Deno.ftruncateSync is", Deno.ftruncateSync);
console.log("Deno.flock is", Deno.flock);
console.log("Deno.flockSync is", Deno.flockSync);
+console.log(
+ "Deno.FsFile.prototype.rid is",
+ Deno.openSync(import.meta.filename).rid,
+);
console.log("Deno.funlock is", Deno.funlock);
console.log("Deno.funlockSync is", Deno.funlockSync);
console.log("Deno.iter is", Deno.iter);
diff --git a/tests/specs/future/runtime_api/main.out b/tests/specs/future/runtime_api/main.out
index 0a46c14f2..c8ef8c62a 100644
--- a/tests/specs/future/runtime_api/main.out
+++ b/tests/specs/future/runtime_api/main.out
@@ -9,6 +9,7 @@ Deno.ftruncate is undefined
Deno.ftruncateSync is undefined
Deno.flock is undefined
Deno.flockSync is undefined
+Deno.FsFile.prototype.rid is undefined
Deno.funlock is undefined
Deno.funlockSync is undefined
Deno.iter is undefined