diff options
author | Asher Gomez <ashersaupingomez@gmail.com> | 2024-09-03 18:33:26 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-03 18:33:26 +1000 |
commit | 259752537f5c81101c47a547ae345f0863235cf6 (patch) | |
tree | 2dfae7a86a8a6260fdcad7f33eeac0b78dae0128 /runtime/js/99_main.js | |
parent | e49d80e500c384b381c375900060e5a476581541 (diff) |
BREAKING: remove `Deno.close()` (#25347)
Towards #22079
Diffstat (limited to 'runtime/js/99_main.js')
-rw-r--r-- | runtime/js/99_main.js | 10 |
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; |