Skip to content

fix(wasm): reject reentrant native calls - #1108

Merged
andiwand merged 1 commit into
mainfrom
review/90-wasm-reentrancy
Oct 5, 2026
Merged

andiwand merged 1 commit into
mainfrom
review/90-wasm-reentrancy

Conversation

@andiwand

@andiwand andiwand commented Oct 5, 2026 •

Copy link
Copy Markdown
Member

🤖 Generated with Claude Code

A style object's toJSON() could close its document while native code retained a reference to the session, causing a WebAssembly runtime trap. Guard active calls against reentry so callbacks cannot close or mutate that state until the operation finishes.

All 67 Node/WebAssembly tests pass. One regression covers both close paths during serialization and recovery after a JavaScript exception. A parent reproducer reports RuntimeError: null function or function signature mismatch.

@andiwand
andiwand force-pushed the review/89-wasm-integer-bounds branch from e91b2a5 to d04c032 Compare October 5, 2026 21:14
Base automatically changed from review/89-wasm-integer-bounds to main October 5, 2026 21:31
@andiwand
andiwand force-pushed the review/90-wasm-reentrancy branch from ebf00b3 to 4baecb7 Compare October 5, 2026 21:32
@andiwand
andiwand merged commit ee75b16 into main Oct 5, 2026
23 checks passed
@andiwand
andiwand deleted the review/90-wasm-reentrancy branch October 5, 2026 21:32
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