summaryrefslogtreecommitdiff
path: root/runtime/js/99_main.js
diff options
context:
space:
mode:
authorAsher Gomez <ashersaupingomez@gmail.com>2024-09-03 18:33:26 +1000
committerGitHub <noreply@github.com>2024-09-03 18:33:26 +1000
commit259752537f5c81101c47a547ae345f0863235cf6 (patch)
tree2dfae7a86a8a6260fdcad7f33eeac0b78dae0128 /runtime/js/99_main.js
parente49d80e500c384b381c375900060e5a476581541 (diff)
BREAKING: remove `Deno.close()` (#25347)
Towards #22079
Diffstat (limited to 'runtime/js/99_main.js')
-rw-r--r--runtime/js/99_main.js10
1 files changed, 0 insertions, 10 deletions
diff --git a/runtime/js/99_main.js b/runtime/js/99_main.js
index 550304af1..17b1e20d8 100644
--- a/runtime/js/99_main.js
+++ b/runtime/js/99_main.js
@@ -518,14 +518,6 @@ const internalSymbol = Symbol("Deno.internal");
const finalDenoNs = {
internal: internalSymbol,
[internalSymbol]: internals,
- close(rid) {
- internals.warnOnDeprecatedApi(
- "Deno.close()",
- new Error().stack,
- "Use `closer.close()` instead.",
- );
- core.close(rid);
- },
...denoNs,
// Deno.test and Deno.bench are noops here, but kept for compatibility; so
// that they don't cause errors when used outside of `deno test`/`deno bench`
@@ -822,7 +814,6 @@ function bootstrapMainRuntime(runtimeOptions, warmup = false) {
if (future) {
delete globalThis.window;
delete Deno.Buffer;
- delete Deno.close;
delete Deno.copy;
delete Deno.File;
delete Deno.fstat;
@@ -1005,7 +996,6 @@ function bootstrapWorkerRuntime(
if (future) {
delete Deno.Buffer;
- delete Deno.close;
delete Deno.copy;
delete Deno.File;
delete Deno.fstat;