MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / addAliasDependencies

Function addAliasDependencies

src/modules.mjs:293–303  ·  view source on GitHub ↗

* Automatically add the target of an alias to it's dependency list.

()

Source from the content-addressed store, hash-verified

291 * Automatically add the target of an alias to it's dependency list.
292 */
293 addAliasDependencies() {
294 const aliases = {};
295 for (const [key, value] of Object.entries(this.library)) {
296 if (this.isAlias(value)) {
297 aliases[key] = value;
298 }
299 }
300 for (const [key, value] of Object.entries(aliases)) {
301 (this.library[key + '__deps'] ??= []).push(value);
302 }
303 },
304
305 executeJSLibraryFile(filename, contents) {
306 const userLibraryProxy = new Proxy(this.library, {

Callers

nothing calls this directly

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected