(statusText)
| 4286 | if (urlIsHttpHttpsScheme(url) && badPortsSet.has(url.port)) { |
| 4287 | return "blocked"; |
| 4288 | } |
| 4289 | return "allowed"; |
| 4290 | } |
| 4291 | function isErrorLike(object) { |
| 4292 | var _a, _b; |
| 4293 | return object instanceof Error || (((_a = object == null ? void 0 : object.constructor) == null ? void 0 : _a.name) === "Error" || ((_b = object == null ? void 0 : object.constructor) == null ? void 0 : _b.name) === "DOMException"); |
| 4294 | } |
| 4295 | function isValidReasonPhrase(statusText) { |
| 4296 | for (let i = 0; i < statusText.length; ++i) { |
| 4297 | const c = statusText.charCodeAt(i); |
| 4298 | if (!(c === 9 || // HTAB |
| 4299 | c >= 32 && c <= 126 || // SP / VCHAR |
| 4300 | c >= 128 && c <= 255)) { |
| 4301 | return false; |
no outgoing calls
no test coverage detected