Skip to content

Add missing direct __deps entries across JS libraries. NFC - #28060

Merged
sbc100 merged 1 commit into
emscripten-core:mainfrom
sbc100:missing-js-deps
Oct 24, 2026
Merged

sbc100 merged 1 commit into
emscripten-core:mainfrom
sbc100:missing-js-deps

Conversation

@sbc100

@sbc100 sbc100 commented Oct 23, 2026 •

Copy link
Copy Markdown
Collaborator

Add missing direct __deps declarations for JS library symbols that previously relied on other callers pulling in their dependencies later in the dependency graph.

With __deps sorted alphabetically (#28059), adding these missing direct edges ensures that automatically computing JS-to-JS dependencies (#27995) produces identical declaration ordering and zero diffs across test/codesize/.

See: #19098

@sbc100
sbc100 requested a review from dschuff October 23, 2026 18:35

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates several Emscripten library files (including libaddfunction.js, libcore.js, libdylink.js, libfs_shared.js, libopenal.js, libpthread.js, libwasm_worker.js, and libwebaudio.js) to explicitly declare missing dependencies (__deps) for various internal functions and variables. This ensures correct dependency tracking and code generation during the build process. Additionally, test files and expected code sizes have been updated to reflect these changes. No review comments were provided, so there is no additional feedback to address.

Comment thread tools/link.py
Add missing direct `__deps` declarations for JS library symbols that
previously relied on other callers pulling in their dependencies later
in the dependency graph.

With `__ps` sorted alphabetically (emscripten-core#28059), adding these missing
direct edges ensures that automatically computing JS-to-JS dependencies
(emscripten-core#27995) produces identical declaration ordering and zero diffs across
`test/codesize/`.

See: emscripten-core#19098
@sbc100
sbc100 merged commit cc1b638 into emscripten-core:main Oct 24, 2026
42 checks passed
@sbc100
sbc100 deleted the missing-js-deps branch October 24, 2026 00:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants