diff options
author | Asher Gomez <ashersaupingomez@gmail.com> | 2024-09-04 11:28:15 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-04 01:28:15 +0000 |
commit | b72d1a7256fd141c644024b8d9e15fa11234109e (patch) | |
tree | 584371371cf343a407b3881a1300b9da1cc186da /runtime/js | |
parent | 105c571fb6ba4d9b9404b5998eb6e17f0efdd79f (diff) |
BREAKING(fs): remove `Deno.fstat[Sync]()` (#25351)
Towards #22079
Signed-off-by: Asher Gomez <ashersaupingomez@gmail.com>
Diffstat (limited to 'runtime/js')
-rw-r--r-- | runtime/js/90_deno_ns.js | 16 | ||||
-rw-r--r-- | runtime/js/99_main.js | 4 |
2 files changed, 0 insertions, 20 deletions
diff --git a/runtime/js/90_deno_ns.js b/runtime/js/90_deno_ns.js index 7c805e647..3fdab7800 100644 --- a/runtime/js/90_deno_ns.js +++ b/runtime/js/90_deno_ns.js @@ -168,22 +168,6 @@ const denoNs = { connectTls: tls.connectTls, listenTls: tls.listenTls, startTls: tls.startTls, - fstatSync(rid) { - internals.warnOnDeprecatedApi( - "Deno.fstatSync()", - new Error().stack, - "Use `Deno.FsFile.statSync()` instead.", - ); - return fs.fstatSync(rid); - }, - fstat(rid) { - internals.warnOnDeprecatedApi( - "Deno.fstat()", - new Error().stack, - "Use `Deno.FsFile.stat()` instead.", - ); - return fs.fstat(rid); - }, fsyncSync: fs.fsyncSync, fsync: fs.fsync, fdatasyncSync: fs.fdatasyncSync, diff --git a/runtime/js/99_main.js b/runtime/js/99_main.js index 174612851..a30561433 100644 --- a/runtime/js/99_main.js +++ b/runtime/js/99_main.js @@ -802,8 +802,6 @@ function bootstrapMainRuntime(runtimeOptions, warmup = false) { delete globalThis.window; delete Deno.Buffer; delete Deno.File; - delete Deno.fstat; - delete Deno.fstatSync; delete Deno.ftruncate; delete Deno.ftruncateSync; delete Deno.FsFile.prototype.rid; @@ -979,8 +977,6 @@ function bootstrapWorkerRuntime( if (future) { delete Deno.Buffer; delete Deno.File; - delete Deno.fstat; - delete Deno.fstatSync; delete Deno.ftruncate; delete Deno.ftruncateSync; delete Deno.FsFile.prototype.rid; |