diff options
author | Kenta Moriuchi <moriken@kimamass.com> | 2023-04-15 05:23:28 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-14 22:23:28 +0200 |
commit | f086ec57b453fc0af763564eb80fea4b5b7f7296 (patch) | |
tree | 8c7800d918751893e4011eb86f23e8f687d4139b /ext/http/01_http.js | |
parent | 136dce67cec749dce5989ea29e88359ef79a0045 (diff) |
fix(core): Use safe primordials wrappers (#18687)
Diffstat (limited to 'ext/http/01_http.js')
-rw-r--r-- | ext/http/01_http.js | 7 |
1 files changed, 3 insertions, 4 deletions
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; |