From f086ec57b453fc0af763564eb80fea4b5b7f7296 Mon Sep 17 00:00:00 2001 From: Kenta Moriuchi Date: Sat, 15 Apr 2023 05:23:28 +0900 Subject: fix(core): Use safe primordials wrappers (#18687) --- ext/http/01_http.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'ext/http') diff --git a/ext/http/01_http.js b/ext/http/01_http.js index 51347ebed..5bfa58655 100644 --- a/ext/http/01_http.js +++ b/ext/http/01_http.js @@ -47,8 +47,9 @@ const { ArrayPrototypePush, Error, ObjectPrototypeIsPrototypeOf, + PromisePrototypeCatch, + SafeSet, SafeSetIterator, - Set, SetPrototypeAdd, SetPrototypeDelete, SetPrototypeClear, @@ -56,8 +57,6 @@ const { StringPrototypeIncludes, StringPrototypeToLowerCase, StringPrototypeSplit, - SafeSet, - PromisePrototypeCatch, Symbol, SymbolAsyncIterator, TypeError, @@ -79,7 +78,7 @@ class HttpConn { // that were created during lifecycle of this request. // When the connection is closed these resources should be closed // as well. - managedResources = new Set(); + managedResources = new SafeSet(); constructor(rid, remoteAddr, localAddr) { this.#rid = rid; -- cgit v1.2.3