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

Method compileModule

modules/internal/internalLoader.js:121–127  ·  view source on GitHub ↗

* Compiles a module source text with the module's URI * * @param {ModulePrivate} priv a module private object * @param {string} text the module source text to compile * @returns {Module}

(priv, text)

Source from the content-addressed store, hash-verified

119 * @returns {Module}
120 */
121 compileModule(priv, text) {
122 const compiled = this.compileFunc(priv.uri, text);
123
124 setModulePrivate(compiled, priv);
125
126 return compiled;
127 }
128
129 /**
130 * @param {string} specifier the specifier (e.g. relative path, root package) to resolve

Callers 3

resolveModuleMethod · 0.95
moduleLoadHookMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected