* @param {string} url * @return {!URL}
(url)
| 27 | * @return {!URL} |
| 28 | */ |
| 29 | parse(url) { |
| 30 | const anchor = this.getAnchor_(); |
| 31 | anchor.href = ''; |
| 32 | return new URL(url, anchor.href); |
| 33 | }, |
| 34 | |
| 35 | /** |
| 36 | * Returns whether the URL has valid protocol. |
no outgoing calls
no test coverage detected