diff options
Diffstat (limited to 'ext/url')
-rw-r--r-- | ext/url/00_url.js | 20 | ||||
-rw-r--r-- | ext/url/01_urlpattern.js | 4 |
2 files changed, 12 insertions, 12 deletions
diff --git a/ext/url/00_url.js b/ext/url/00_url.js index 5fa0c52bd..1191565ee 100644 --- a/ext/url/00_url.js +++ b/ext/url/00_url.js @@ -367,16 +367,16 @@ } #updateComponents() { - [ - this.#schemeEnd, - this.#usernameEnd, - this.#hostStart, - this.#hostEnd, - this.#port, - this.#pathStart, - this.#queryStart, - this.#fragmentStart, - ] = componentsBuf; + ({ + 0: this.#schemeEnd, + 1: this.#usernameEnd, + 2: this.#hostStart, + 3: this.#hostEnd, + 4: this.#port, + 5: this.#pathStart, + 6: this.#queryStart, + 7: this.#fragmentStart, + } = componentsBuf); } [SymbolFor("Deno.privateCustomInspect")](inspect, inspectOptions) { diff --git a/ext/url/01_urlpattern.js b/ext/url/01_urlpattern.js index ef7df60e5..14f052551 100644 --- a/ext/url/01_urlpattern.js +++ b/ext/url/01_urlpattern.js @@ -155,7 +155,7 @@ return false; } - const [values] = res; + const values = res[0]; const keys = ObjectKeys(values); for (let i = 0; i < keys.length; ++i) { @@ -196,7 +196,7 @@ return null; } - const [values, inputs] = res; + const { 0: values, 1: inputs } = res; if (inputs[1] === null) { inputs.pop(); } |