From a2512de95f2e03008e631a7b19405317d8c361b8 Mon Sep 17 00:00:00 2001 From: Luca Casonato Date: Tue, 20 Jul 2021 21:06:24 +0200 Subject: fix: close fetch response body on GC (#11467) This commit fixes fetch response bodies to be automatically closed if the `Response.body` readable stream goes out of scope and is GC'ed. --- cli/tests/integration/run_tests.rs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'cli/tests/integration') diff --git a/cli/tests/integration/run_tests.rs b/cli/tests/integration/run_tests.rs index 08e0c8306..88b7f5928 100644 --- a/cli/tests/integration/run_tests.rs +++ b/cli/tests/integration/run_tests.rs @@ -372,6 +372,13 @@ itest!(blob_gc_finalization { exit_code: 0, }); +itest!(fetch_response_finalization { + args: "run --v8-flags=--expose-gc --allow-net fetch_response_finalization.js", + output: "fetch_response_finalization.js.out", + http_server: true, + exit_code: 0, +}); + itest!(lock_write_requires_lock { args: "run --lock-write some_file.ts", output: "lock_write_requires_lock.out", -- cgit v1.2.3