Skip to content

Minor cleanup and refactoring in src/jsifier.mjs. NFC - #27997

Merged
sbc100 merged 1 commit into
emscripten-core:mainfrom
sbc100:jsifier-cleanup
Oct 16, 2026
Merged

sbc100 merged 1 commit into
emscripten-core:mainfrom
sbc100:jsifier-cleanup

Conversation

@sbc100

@sbc100 sbc100 commented Oct 16, 2026 •

Copy link
Copy Markdown
Collaborator
  • Skip scanning PRE_JS_FILES, POST_JS_FILES, and EM_JS_SNIPPETS in --symbols-only mode, and use getIncludeFile so preprocessed files are handled consistently.
  • Avoid mutating LibraryManager.library[symbol] when creating stub functions and remove the unused original variable.
  • Add timer.start/timer.stop around the symbolHandler loop.

Split out from #27995

- Skip scanning `PRE_JS_FILES`, `POST_JS_FILES`, and `EM_JS_SNIPPETS` in
  `--symbols-only` mode, and use `getIncludeFile` so preprocessed files
  are handled consistently.
- Avoid mutating `LibraryManager.library[symbol]` when creating stub
  functions and remove the unused `original` variable.
- Add `timer.start`/`timer.stop` around the `symbolHandler` loop.
@sbc100
sbc100 requested review from brendandahl and kripken October 16, 2026 18:45
@sbc100
sbc100 merged commit e13ee98 into emscripten-core:main Oct 16, 2026
42 checks passed
@sbc100
sbc100 deleted the jsifier-cleanup branch October 16, 2026 20:09
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