diff options
Diffstat (limited to 'cli/tests/testdata/run/fetch_response_finalization.js')
-rw-r--r-- | cli/tests/testdata/run/fetch_response_finalization.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/tests/testdata/run/fetch_response_finalization.js b/cli/tests/testdata/run/fetch_response_finalization.js index dd7c355eb..85fc6afa3 100644 --- a/cli/tests/testdata/run/fetch_response_finalization.js +++ b/cli/tests/testdata/run/fetch_response_finalization.js @@ -1,6 +1,6 @@ async function doAFetch() { const resp = await fetch("http://localhost:4545/README.md"); - console.log(Deno.resources()); // print the current resources + console.log(Deno[Deno.internal].core.resources()); // print the current resources const _resp = resp; // at this point resp can be GC'ed } @@ -13,4 +13,4 @@ globalThis.gc(); // force GC // the response body is not called and the resource is not closed. await new Promise((resolve) => setTimeout(resolve, 0)); -console.log(Deno.resources()); // print the current resources +console.log(Deno[Deno.internal].core.resources()); // print the current resources |