From 3462248571fd3193106a0427b3d8f585f9716c48 Mon Sep 17 00:00:00 2001 From: Asher Gomez Date: Wed, 27 Mar 2024 23:45:19 +1100 Subject: [PATCH] FUTURE(ext/fs): remove `Deno.FsFile.rid` (#23087) Continues work from #23075. Towards #23089. --- runtime/js/99_main.js | 1 + tests/specs/future/runtime_api/__test__.jsonc | 2 +- tests/specs/future/runtime_api/main.js | 4 ++++ tests/specs/future/runtime_api/main.out | 1 + 4 files changed, 7 insertions(+), 1 deletion(-) diff --git a/runtime/js/99_main.js b/runtime/js/99_main.js index 9f98061a0c..f65bd2b017 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 71a724d895..eb833195df 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 6a0daff226..5275ad8782 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 0a46c14f2e..c8ef8c62a0 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