Skip to content

spec: test callbacks returning thenables#439

Merged
hanazuki merged 1 commit into
masterfrom
test-thenable
May 23, 2026
Merged

spec: test callbacks returning thenables#439
hanazuki merged 1 commit into
masterfrom
test-thenable

Conversation

@hanazuki
Copy link
Copy Markdown
Owner

The async wrapper in lib/index.cjs wraps non-async callbacks in an async function, which causes returned thenables to be resolved via Promise.resolve() before reaching the C++ layer. These specs verify that behavior for both nativeCallback and importCallback, covering both resolving and rejecting thenables.

The async wrapper in lib/index.cjs wraps non-async callbacks in an
async function, which causes returned thenables to be resolved via
Promise.resolve() before reaching the C++ layer. These specs verify
that behavior for both nativeCallback and importCallback, covering
both resolving and rejecting thenables.
@hanazuki hanazuki merged commit eaf5e2d into master May 23, 2026
13 checks passed
@hanazuki hanazuki deleted the test-thenable branch May 23, 2026 09:30
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