Skip to content

Commit 3c5cb28

Browse files
committed
url: create href using searchParams without bindingUrl call
1 parent c2e8526 commit 3c5cb28

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/internal/url.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -838,7 +838,9 @@ class URL {
838838
get href() {
839839
// URLSearchParams is used on demand, and stores the search if it's used.
840840
if (this.#searchParams) {
841-
return bindingUrl.update(this.#context.href, updateActions.kSearch, this.#searchParams.toString());
841+
return StringPrototypeSlice(this.#context.href, 0, this.#context.hash_start - 1)
842+
+ this.#searchParams.toString()
843+
+ StringPrototypeSlice(this.#context.href, this.#context.hash_start);
842844
}
843845
return this.#context.href;
844846
}

0 commit comments

Comments
 (0)