mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 12:19:12 +00:00
parent
e49d80e500
commit
259752537f
6 changed files with 0 additions and 51 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue