From 948f85216a15e4ef489af21bb532a9b201b0364c Mon Sep 17 00:00:00 2001 From: Kenta Moriuchi Date: Tue, 20 Dec 2022 11:37:50 +0900 Subject: chore: Update dlint (#17031) Introduces `SafeSetIterator` and `SafeMapIterator` to primordials --- ext/http/01_http.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext/http') diff --git a/ext/http/01_http.js b/ext/http/01_http.js index ab23cbec0..bd740b600 100644 --- a/ext/http/01_http.js +++ b/ext/http/01_http.js @@ -45,10 +45,10 @@ ArrayPrototypeSome, Error, ObjectPrototypeIsPrototypeOf, + SafeSetIterator, Set, SetPrototypeAdd, SetPrototypeDelete, - SetPrototypeValues, StringPrototypeIncludes, StringPrototypeToLowerCase, StringPrototypeSplit, @@ -153,7 +153,7 @@ if (!this.#closed) { this.#closed = true; core.close(this.#rid); - for (const rid of SetPrototypeValues(this.managedResources)) { + for (const rid of new SafeSetIterator(this.managedResources)) { SetPrototypeDelete(this.managedResources, rid); core.close(rid); } -- cgit v1.2.3