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

Method port

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

Source from the content-addressed store, hash-verified

1085 }
1086
1087 get port() {
1088 if (this.#context.hasPort) {
1089 return `${this.#context.port}`;
1090 }
1091 return '';
1092 }
1093
1094 set port(value) {
1095 const href = bindingUrl.update(this.#context.href, updateActions.kPort, `${value}`);

Callers

nothing calls this directly

Calls 2

#updateContextMethod · 0.95
updateMethod · 0.65

Tested by

no test coverage detected