Skip to content

Convert instantiateAsync form callbacks to promises. NFC #23066

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
Dec 4, 2024

Conversation

sbc100
Copy link
Collaborator

@sbc100 sbc100 commented Dec 4, 2024

I'll hoping to follow up with a conversion to using await here.

The code size changes seem to be mostly a wash with some tests improving and others regressing by a few bytes.

@sbc100 sbc100 requested review from kripken and brendandahl December 4, 2024 00:21
@sbc100
Copy link
Collaborator Author

sbc100 commented Dec 4, 2024

Best viewed with "ignore whitespace"

@sbc100 sbc100 enabled auto-merge (squash) December 4, 2024 01:17
@sbc100 sbc100 force-pushed the instantiateAsync branch 2 times, most recently from 76b04c9 to ff39fbc Compare December 4, 2024 03:21
@sbc100 sbc100 merged commit 5122e40 into emscripten-core:main Dec 4, 2024
28 checks passed
@sbc100 sbc100 deleted the instantiateAsync branch December 4, 2024 23:37
sbc100 added a commit that referenced this pull request Dec 10, 2024
These get lowered away by babel when targetting older engines.

Followup to #23066, with code size savings.
hedwigz pushed a commit to hedwigz/emscripten that referenced this pull request Dec 18, 2024
…core#23066)

I'll hoping to follow up with a conversion to using `await` here.

The code size changes seem to be mostly a wash with some tests improving
and others regressing by a few bytes.
hedwigz pushed a commit to hedwigz/emscripten that referenced this pull request Dec 18, 2024
…-core#23068)

These get lowered away by babel when targetting older engines.

Followup to emscripten-core#23066, with code size savings.
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