MCPcopy Index your code
hub / github.com/nodejs/node / searchParams

Method searchParams

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

Source from the content-addressed store, hash-verified

1130
1131 // readonly
1132 get searchParams() {
1133 // Create URLSearchParams on demand to greatly improve the URL performance.
1134 if (this.#searchParams == null) {
1135 this.#searchParams = new URLSearchParams(this.#getSearchFromContext());
1136 setURLSearchParamsContext(this.#searchParams, this);
1137 this.#searchParamsModified = false;
1138 }
1139 return this.#searchParams;
1140 }
1141
1142 get hash() {
1143 if (!this.#context.hasHash || (this.#context.href.length - this.#context.hash_start <= 1)) {

Callers

nothing calls this directly

Calls 1

#getSearchFromContextMethod · 0.95

Tested by

no test coverage detected