Skip to content

test: panic on throw in callback of threadsafe function with CalleeHandled=false#2812

Closed
sapphi-red wants to merge 1 commit into
napi-rs:mainfrom
sapphi-red:test/panic-on-throw-in-callback-of-threadsafe-function-with-callee-handled
Closed

test: panic on throw in callback of threadsafe function with CalleeHandled=false#2812
sapphi-red wants to merge 1 commit into
napi-rs:mainfrom
sapphi-red:test/panic-on-throw-in-callback-of-threadsafe-function-with-callee-handled

Conversation

@sapphi-red

Copy link
Copy Markdown
Contributor

This test crashes with fatal runtime error: failed to initiate panic, error 5.
Is this expected?

The documents does not say whether it is unsafe to throw inside the callback.
https://napi.rs/docs/concepts/threadsafe-function.en#errorstrategy

@graphite-app

graphite-app Bot commented Jul 28, 2025

Copy link
Copy Markdown

How to use the Graphite Merge Queue

Add the label ready-to-merge to this PR to add it to the merge queue.

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

@sapphi-red sapphi-red closed this Jul 29, 2025
@sapphi-red

Copy link
Copy Markdown
Contributor Author

This behavior is expected.

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