summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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