Skip to content

Remove NODEJS_CATCH_EXIT setting#26326

Merged
sbc100 merged 1 commit intoemscripten-core:mainfrom
sbc100:NODEJS_CATCH_EXIT
Feb 24, 2026
Merged

Remove NODEJS_CATCH_EXIT setting#26326
sbc100 merged 1 commit intoemscripten-core:mainfrom
sbc100:NODEJS_CATCH_EXIT

Conversation

@sbc100
Copy link
Collaborator

@sbc100 sbc100 commented Feb 24, 2026

This setting has not been enabled by default since #22257.

It is not used anywhere internally in emscripten test suite anymore.

Its is problematic because it installs process-wide global exit handler (so it doesn't work well with other modules or other code).

It should not be needed in general since most code paths that enter the module are wrapped in try/catch that handled ExitStatus.

Its trivial to replace with a --pre-js or some other external JS snippet.

@sbc100 sbc100 requested review from dschuff and kripken February 24, 2026 00:21
@sbc100 sbc100 enabled auto-merge (squash) February 24, 2026 01:13
@sbc100 sbc100 disabled auto-merge February 24, 2026 01:54
@sbc100 sbc100 merged commit d74f269 into emscripten-core:main Feb 24, 2026
32 of 36 checks passed
@sbc100 sbc100 deleted the NODEJS_CATCH_EXIT branch February 24, 2026 01:54
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