MCPcopy Create free account
hub / github.com/GNOME/gjs / loadURI

Method loadURI

modules/internal/loader.js:90–99  ·  view source on GitHub ↗

* Overrides InternalModuleLoader.loadURI * * @param {Uri} uri a Uri object to load * @returns {string}

(uri)

Source from the content-addressed store, hash-verified

88 * @returns {string}
89 */
90 loadURI(uri) {
91 if (uri.scheme) {
92 const loader = this.schemeHandlers.get(uri.scheme);
93
94 if (loader)
95 return loader.load(uri);
96 }
97
98 return super.loadURI(uri);
99 }
100
101 /**
102 * Overrides InternalModuleLoader.resolveSpecifier. Adds the behaviour of

Callers 2

populateSourceMapMethod · 0.95
moduleLoadHookMethod · 0.95

Calls 2

loadMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected