MCPcopy Index your code
hub / github.com/nodejs/node / defaultGetFormatWithoutErrors

Function defaultGetFormatWithoutErrors

lib/internal/modules/esm/get_format.js:244–250  ·  view source on GitHub ↗

* @param {URL} url * @param {{parentURL: string}} context * @returns {Promise | string | undefined} only works when enabled

(url, context)

Source from the content-addressed store, hash-verified

242 * @returns {Promise<string> | string | undefined} only works when enabled
243 */
244function 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

Callers 2

defaultResolveFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…