* @param {URL} url * @param {{parentURL: string}} context * @returns {Promise | string | undefined} only works when enabled
(url, context)
| 242 | * @returns {Promise<string> | string | undefined} only works when enabled |
| 243 | */ |
| 244 | function defaultGetFormatWithoutErrors(url, context) { |
| 245 | const protocol = url.protocol; |
| 246 | if (!ObjectPrototypeHasOwnProperty(protocolHandlers, protocol)) { |
| 247 | return null; |
| 248 | } |
| 249 | return protocolHandlers[protocol](url, context, true); |
| 250 | } |
| 251 | |
| 252 | /** |
| 253 | * @param {URL} url |
no outgoing calls
no test coverage detected
searching dependent graphs…