Skip to content

[libbrowser.js] Remove non-standard Module exports #24269

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 7, 2025

Conversation

sbc100
Copy link
Collaborator

@sbc100 sbc100 commented May 6, 2025

Anyone who wants to use these functions on the Module object can
export them using e.g. -sEXPORTED_FUNCTIONS=getUserMedia.

As part of this I had to inject the export of createContext for SDL2
and SDL3 which were using Module['createContext'] for some reason.
I'm working on upstream patches to remove this usage.

@sbc100 sbc100 requested a review from brendandahl May 6, 2025 17:19
@sbc100 sbc100 force-pushed the browser_aliases branch 2 times, most recently from 08ffdbe to ea9fa80 Compare May 6, 2025 20:24
@sbc100 sbc100 enabled auto-merge (squash) May 6, 2025 20:25
@sbc100 sbc100 requested a review from kripken May 6, 2025 20:25
sbc100 added a commit to sbc100/SDL that referenced this pull request May 6, 2025
The Module interface is the one used by the outside world.  This code
is inside the module itself so can use the internal name, avoiding the
need to export this function on the Module at all.

See emscripten-core/emscripten#24269
slouken pushed a commit to libsdl-org/SDL that referenced this pull request May 6, 2025
The Module interface is the one used by the outside world.  This code
is inside the module itself so can use the internal name, avoiding the
need to export this function on the Module at all.

See emscripten-core/emscripten#24269
slouken pushed a commit to libsdl-org/SDL that referenced this pull request May 6, 2025
The Module interface is the one used by the outside world.  This code
is inside the module itself so can use the internal name, avoiding the
need to export this function on the Module at all.

See emscripten-core/emscripten#24269

(cherry picked from commit 8e1f4ba)
@sbc100 sbc100 force-pushed the browser_aliases branch 2 times, most recently from 170e2df to 98890a7 Compare May 6, 2025 21:59
@sbc100
Copy link
Collaborator Author

sbc100 commented May 6, 2025

Combined with the existing changelog entry that did the same thing for embind symbols.

@sbc100 sbc100 requested a review from kripken May 6, 2025 22:00
@sbc100 sbc100 requested a review from kripken May 7, 2025 17:26
Anyone who wants to use these functions on the Module object can export
them using e.g. `-sEXPORTED_FUNCTIONS=getUserMedia`.

As part of this I had to inject the export of `createContext` for SDL2
and SDL3 which were using `Module['createContext']` for some reason.
I'm working on upstream patches to remove this usage.
@sbc100 sbc100 force-pushed the browser_aliases branch from 98890a7 to 818e8de Compare May 7, 2025 17:27
@sbc100 sbc100 merged commit 4698834 into emscripten-core:main May 7, 2025
28 checks passed
@sbc100 sbc100 deleted the browser_aliases branch May 7, 2025 18:33
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