Skip to content

Remove internal emscripten_get_module_name helper. NFC - #21828

Merged
sbc100 merged 1 commit into
emscripten-core:mainfrom
sbc100:remove_emscripten_get_module_name
Apr 25, 2024
Merged

sbc100 merged 1 commit into
emscripten-core:mainfrom
sbc100:remove_emscripten_get_module_name

Conversation

@sbc100

@sbc100 sbc100 commented Apr 25, 2024

Copy link
Copy Markdown
Collaborator

This helper was added when we implement sanitizes in #8651. It was never added to any public header file and should only have these two internal users.

Instead of this function we can just use the existing internal _emscripten_get_progname function, which can in turn then be implemented in terms of the existing getExecutableName JavaScript function.

@sbc100
sbc100 force-pushed the remove_emscripten_get_module_name branch 2 times, most recently from 2f5f868 to de04326 Compare April 25, 2024 15:53
@sbc100
sbc100 requested review from dschuff and kripken April 25, 2024 15:58
@sbc100
sbc100 force-pushed the remove_emscripten_get_module_name branch from de04326 to 51bba4c Compare April 25, 2024 16:11
@sbc100 sbc100 changed the title Remove internal emscripten_get_module_name helper. NFC Remove internal emscripten_get_module_name helper. NFC Apr 25, 2024
This helper was added when we implement sanitizes in emscripten-core#8651.  It was
never added to any public header file and should only have these two
internal users.

Instead of this function we can just use the existing internal
`_emscripten_get_progname` function, which can in turn then be
implemented in terms of the existing `getExecutableName` JavaScript
function.
@sbc100
sbc100 force-pushed the remove_emscripten_get_module_name branch from 51bba4c to d9188c4 Compare April 25, 2024 17:30
@sbc100
sbc100 enabled auto-merge (squash) April 25, 2024 17:34
@sbc100
sbc100 merged commit 2953743 into emscripten-core:main Apr 25, 2024
@sbc100
sbc100 deleted the remove_emscripten_get_module_name branch April 25, 2024 18:45
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.

3 participants