1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-01-11 08:33:43 -05:00

FUTURE(ext/fs): remove Deno.FsFile.rid (#23087)

Continues work from #23075. Towards #23089.
This commit is contained in:
Asher Gomez 2024-03-27 23:45:19 +11:00 committed by GitHub
parent c9e10ededa
commit 3462248571
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 7 additions and 1 deletions

View file

@ -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;

View file

@ -1,5 +1,5 @@
{
"args": "run main.js",
"args": "run -A main.js",
"output": "main.out",
"envs": {
"DENO_FUTURE": "1"

View file

@ -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);

View file

@ -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