Skip to content

[docs] Clarify stack restoration when catching exceptions from JS - #27748

Open
sbc100 wants to merge 1 commit into
emscripten-core:mainfrom
sbc100:docs-exception-stack-restore
Open

sbc100 wants to merge 1 commit into
emscripten-core:mainfrom
sbc100:docs-exception-stack-restore

Conversation

@sbc100

@sbc100 sbc100 commented Sep 18, 2026

Copy link
Copy Markdown
Collaborator

Clarify that Emscripten does not automatically restore the shadow stack pointer during exception unwinding when an exception escapes into JavaScript, and that callers catching exceptions in JS must use stackSave() and stackRestore() to avoid leaking stack memory.

See: #27610

Clarify that Emscripten does not automatically restore the shadow stack
pointer during exception unwinding when an exception escapes into
JavaScript, and that callers catching exceptions in JS must use
`stackSave()` and `stackRestore()` to avoid leaking stack memory.

See: emscripten-core#27610
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