MCPcopy Index your code
hub / github.com/nodejs/node / #ensureSearchParamsUpdated

Method #ensureSearchParamsUpdated

lib/internal/url.js:902–909  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

900 }
901
902 #ensureSearchParamsUpdated() {
903 // URL is updated lazily to greatly improve performance when URLSearchParams is updated repeatedly.
904 // If URLSearchParams has been modified, reflect that back into URL, without cascading back.
905 if (this.#searchParamsModified) {
906 this.#searchParamsModified = false;
907 this.#updateContext(bindingUrl.update(this.#context.href, updateActions.kSearch, this.#getSearchFromParams()));
908 }
909 }
910
911 /**
912 * Update the internal context state for URL.

Callers 5

#updateContextMethod · 0.95
toStringMethod · 0.95
hrefMethod · 0.95
searchMethod · 0.95
toJSONMethod · 0.95

Calls 3

#updateContextMethod · 0.95
#getSearchFromParamsMethod · 0.95
updateMethod · 0.65

Tested by

no test coverage detected