summaryrefslogtreecommitdiff
path: root/tests/specs/future/runtime_api/main.js
diff options
context:
space:
mode:
authorAsher Gomez <ashersaupingomez@gmail.com>2024-03-27 02:56:52 +1100
committerGitHub <noreply@github.com>2024-03-26 16:56:52 +0100
commit89aa6d5cf6ae76e3698587923453f535b9af81af (patch)
tree7febc36de636398d8018935a8ca0e763cc9cfd4f /tests/specs/future/runtime_api/main.js
parent3b61104e2a8984255f74827b0f1c23476ccd8209 (diff)
feat: remove deprecated methods from namespace with `DENO_FUTURE=1` (#23075)
This change removes deprecated methods from the `Deno.*` namespace when the `DENO_FUTURE=1` environment variable is used. Note: this does not address deprecated class properties and methods. E.g. `Deno.Conn.rid`.
Diffstat (limited to 'tests/specs/future/runtime_api/main.js')
-rw-r--r--tests/specs/future/runtime_api/main.js26
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/specs/future/runtime_api/main.js b/tests/specs/future/runtime_api/main.js
index c310467d3..90f7829ea 100644
--- a/tests/specs/future/runtime_api/main.js
+++ b/tests/specs/future/runtime_api/main.js
@@ -1 +1,27 @@
console.log("window is", globalThis.window);
+console.log("Deno.Buffer is", Deno.Buffer);
+console.log("Deno.close is", Deno.close);
+console.log("Deno.copy is", Deno.copy);
+console.log("Deno.File is", Deno.File);
+console.log("Deno.fstat is", Deno.fstat);
+console.log("Deno.fstatSync is", Deno.fstatSync);
+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.funlock is", Deno.funlock);
+console.log("Deno.funlockSync is", Deno.funlockSync);
+console.log("Deno.iter is", Deno.iter);
+console.log("Deno.iterSync is", Deno.iterSync);
+console.log("Deno.metrics is", Deno.metrics);
+console.log("Deno.readAll is", Deno.readAll);
+console.log("Deno.readAllSync is", Deno.readAllSync);
+console.log("Deno.read is", Deno.read);
+console.log("Deno.readSync is", Deno.readSync);
+console.log("Deno.seek is", Deno.seek);
+console.log("Deno.seekSync is", Deno.seekSync);
+console.log("Deno.shutdown is", Deno.shutdown);
+console.log("Deno.writeAll is", Deno.writeAll);
+console.log("Deno.writeAllSync is", Deno.writeAllSync);
+console.log("Deno.write is", Deno.write);
+console.log("Deno.writeSync is", Deno.writeSync);