diff --git a/ext/http/01_http.js b/ext/http/01_http.js index e678875d1d..119fc16734 100644 --- a/ext/http/01_http.js +++ b/ext/http/01_http.js @@ -42,7 +42,6 @@ Set, SetPrototypeAdd, SetPrototypeDelete, - SetPrototypeHas, SetPrototypeValues, StringPrototypeIncludes, StringPrototypeToLowerCase, @@ -352,8 +351,7 @@ } } } finally { - if (SetPrototypeHas(httpConn.managedResources, streamRid)) { - SetPrototypeDelete(httpConn.managedResources, streamRid); + if (SetPrototypeDelete(httpConn.managedResources, streamRid)) { core.close(streamRid); } }