Skip to content

Conversation

sbc100
Copy link
Collaborator

@sbc100 sbc100 commented Oct 7, 2025

We had some testing for LEGACY_RUNTIME but not explicitly for the usage of symbols in liblegacy.js which are two slightly different things.

@sbc100 sbc100 requested review from dschuff and kripken October 7, 2025 18:14
@sbc100 sbc100 enabled auto-merge (squash) October 7, 2025 18:14
We had some testing for `LEGACY_RUNTIME` but not explicitly for the
usage of symbols in `liblegacy.js` which are two slightly different
things.
$allocateUTF8: '$stringToNewUTF8',
$allocateUTF8OnStack: '$stringToUTF8OnStack',
$allocateUTF8__deps: ['$stringToNewUTF8'],
$allocateUTF8: (...args) => stringToNewUTF8(...args),
Copy link
Member

Choose a reason for hiding this comment

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

what does this part actually do?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I changed these from simple aliases to wrapper functions.

The aliases were bypassing the JS library symbol '${name}' is deprecated warning injections mechanism below.

@sbc100 sbc100 merged commit bff56e2 into emscripten-core:main Oct 7, 2025
33 checks passed
@sbc100 sbc100 deleted the liblegacy branch October 7, 2025 22:22
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