(hostname)
| 151 | } |
| 152 | |
| 153 | function isIpv6Hostname(hostname) { |
| 154 | return ( |
| 155 | StringPrototypeCharCodeAt(hostname, 0) === CHAR_LEFT_SQUARE_BRACKET && |
| 156 | StringPrototypeCharCodeAt(hostname, hostname.length - 1) === |
| 157 | CHAR_RIGHT_SQUARE_BRACKET |
| 158 | ); |
| 159 | } |
| 160 | |
| 161 | // This prevents some common spoofing bugs due to our use of IDNA toASCII. For |
| 162 | // compatibility, the set of characters we use here is the *intersection* of |
no outgoing calls
no test coverage detected
searching dependent graphs…