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

Method pathname

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

Source from the content-addressed store, hash-verified

1099 }
1100
1101 get pathname() {
1102 let endsAt;
1103 if (this.#context.hasSearch) {
1104 endsAt = this.#context.search_start;
1105 } else if (this.#context.hasHash) {
1106 endsAt = this.#context.hash_start;
1107 }
1108 return StringPrototypeSlice(this.#context.href, this.#context.pathname_start, endsAt);
1109 }
1110
1111 set pathname(value) {
1112 const href = bindingUrl.update(this.#context.href, updateActions.kPathname, `${value}`);

Callers

nothing calls this directly

Calls 2

#updateContextMethod · 0.95
updateMethod · 0.65

Tested by

no test coverage detected