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

Method hash

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

Source from the content-addressed store, hash-verified

1140 }
1141
1142 get hash() {
1143 if (!this.#context.hasHash || (this.#context.href.length - this.#context.hash_start <= 1)) {
1144 return '';
1145 }
1146 return StringPrototypeSlice(this.#context.href, this.#context.hash_start);
1147 }
1148
1149 set hash(value) {
1150 const href = bindingUrl.update(this.#context.href, updateActions.kHash, `${value}`);

Calls 2

#updateContextMethod · 0.95
updateMethod · 0.65

Tested by

no test coverage detected