Skip to content

Convert instantiateAsync form callbacks to promises. NFC#23066

Merged
sbc100 merged 1 commit into
emscripten-core:mainfrom
sbc100:instantiateAsync
Dec 4, 2024
Merged

Convert instantiateAsync form callbacks to promises. NFC#23066
sbc100 merged 1 commit into
emscripten-core:mainfrom
sbc100:instantiateAsync

Conversation

@sbc100
Copy link
Copy Markdown
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 brendandahl and kripken December 4, 2024 00:21
@sbc100
Copy link
Copy Markdown
Collaborator Author

sbc100 commented Dec 4, 2024

Best viewed with "ignore whitespace"

Comment thread src/preamble.js Outdated
@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
@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