()
| 1069 | } |
| 1070 | |
| 1071 | get hostname() { |
| 1072 | let startsAt = this.#context.host_start; |
| 1073 | // host_start might be "@" if the URL has credentials |
| 1074 | if (this.#context.href[startsAt] === '@') { |
| 1075 | startsAt++; |
| 1076 | } |
| 1077 | return StringPrototypeSlice(this.#context.href, startsAt, this.#context.host_end); |
| 1078 | } |
| 1079 | |
| 1080 | set hostname(value) { |
| 1081 | const href = bindingUrl.update(this.#context.href, updateActions.kHostname, `${value}`); |
nothing calls this directly
no test coverage detected