Skip to content

Simplify setStatus implementation in run. NFC#27121

Open
sbc100 wants to merge 1 commit into
emscripten-core:mainfrom
sbc100:setStatus
Open

Simplify setStatus implementation in run. NFC#27121
sbc100 wants to merge 1 commit into
emscripten-core:mainfrom
sbc100:setStatus

Conversation

@sbc100

@sbc100 sbc100 commented Jun 15, 2026

Copy link
Copy Markdown
Collaborator

The codesize costs here only apply to builds that include setStatus in INCOMING_MODULE_JS_API, so don't apply to builds that really care about code size (i.e. when -sINCOMING_MODULE_JS_API=[] is used).

I think that simplifying the if/else logic in the run function pretty big plus here.

The codesize costs here only apply to builds that include
`setStatus` in `INCOMING_MODULE_JS_API`, so don't apply to builds
that really care about code size (i.e. when
`-sINCOMING_MODULE_JS_API=[]` is used).
@sbc100 sbc100 requested a review from brendandahl June 15, 2026 23:42
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.

1 participant