Skip to content
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

Remove use of legacy proxy API from library_html5.js. NFC #20370

Merged
merged 1 commit into from
Oct 3, 2023

Conversation

sbc100
Copy link
Collaborator

@sbc100 sbc100 commented Oct 2, 2023

AFAICT this is the final usage of the legacy proxy API within emscripten.

@sbc100 sbc100 requested a review from tlively October 2, 2023 18:33
@sbc100 sbc100 force-pushed the remove_use_of_legacy_proxy_api branch from 99bae4f to 1cb518d Compare October 2, 2023 19:43
static void do_callback(void* arg) {
callback_args_t* args = (callback_args_t*)arg;
args->callback(args->event_type, args->event_data, args->user_data);
free(arg);
Copy link
Member

Choose a reason for hiding this comment

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

No need to free since arg is stack allocated.

AFAICT this is the final usage of the legacy proxy API within
emscripten.
@sbc100 sbc100 force-pushed the remove_use_of_legacy_proxy_api branch from 1cb518d to e58cb95 Compare October 2, 2023 23:23
@sbc100 sbc100 merged commit c41f659 into emscripten-core:main Oct 3, 2023
26 checks passed
@sbc100 sbc100 deleted the remove_use_of_legacy_proxy_api branch October 3, 2023 16:36
stbergmann added a commit to stbergmann/emscripten that referenced this pull request Aug 23, 2024
...fixing a regression introduced in c41f659
"Remove use of legacy proxy API from library_html5.js. NFC (emscripten-core#20370)".

Fixes: emscripten-core#22442
stbergmann added a commit to stbergmann/emscripten that referenced this pull request Sep 3, 2024
...fixing a regression introduced in c41f659
"Remove use of legacy proxy API from library_html5.js. NFC (emscripten-core#20370)".

Fixes: emscripten-core#22442
stbergmann added a commit to stbergmann/emscripten that referenced this pull request Sep 16, 2024
...fixing a regression introduced in c41f659
"Remove use of legacy proxy API from library_html5.js. NFC (emscripten-core#20370)".

Fixes: emscripten-core#22442
stbergmann added a commit to allotropia/emscripten that referenced this pull request Sep 18, 2024
...fixing a regression introduced in c41f659
"Remove use of legacy proxy API from library_html5.js. NFC (emscripten-core#20370)".

Fixes: emscripten-core#22442

(cherry-picked from 17f1bb7 at
<emscripten-core#22443> "Make
_emscripten_run_callback_on_thread asynchronous")
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