diff options
author | Kenta Moriuchi <moriken@kimamass.com> | 2022-12-20 11:37:50 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-20 03:37:50 +0100 |
commit | 948f85216a15e4ef489af21bb532a9b201b0364c (patch) | |
tree | 35c2bbfa021cf9a4190ab803ed091c5547bfe9f4 /ext/url/01_urlpattern.js | |
parent | 2ac575abfb75dc4533306c80240cb1beeb816b9b (diff) |
chore: Update dlint (#17031)
Introduces `SafeSetIterator` and `SafeMapIterator` to primordials
Diffstat (limited to 'ext/url/01_urlpattern.js')
-rw-r--r-- | ext/url/01_urlpattern.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/ext/url/01_urlpattern.js b/ext/url/01_urlpattern.js index ac18a4c82..cef48eabb 100644 --- a/ext/url/01_urlpattern.js +++ b/ext/url/01_urlpattern.js @@ -20,6 +20,7 @@ RegExp, RegExpPrototypeExec, RegExpPrototypeTest, + SafeArrayIterator, Symbol, SymbolFor, TypeError, @@ -71,7 +72,7 @@ const components = ops.op_urlpattern_parse(input, baseURL); - for (const key of ObjectKeys(components)) { + for (const key of new SafeArrayIterator(ObjectKeys(components))) { try { components[key].regexp = new RegExp( components[key].regexpString, @@ -155,7 +156,7 @@ const [values] = res; - for (const key of ObjectKeys(values)) { + for (const key of new SafeArrayIterator(ObjectKeys(values))) { if (!RegExpPrototypeTest(this[_components][key].regexp, values[key])) { return false; } @@ -201,7 +202,7 @@ const result = { inputs }; /** @type {string} */ - for (const key of ObjectKeys(values)) { + for (const key of new SafeArrayIterator(ObjectKeys(values))) { /** @type {Component} */ const component = this[_components][key]; const input = values[key]; |