Skip to content

Allow null/undefined handler in emscripten_promise_then#26951

Merged
sbc100 merged 1 commit into
emscripten-core:mainfrom
sbc100:promise_then_null_handlers
May 14, 2026
Merged

Allow null/undefined handler in emscripten_promise_then#26951
sbc100 merged 1 commit into
emscripten-core:mainfrom
sbc100:promise_then_null_handlers

Conversation

@sbc100
Copy link
Copy Markdown
Collaborator

@sbc100 sbc100 commented May 14, 2026

Just like in the JS promise.then API it is now valid to pass NULL (0) callbacks to emscripten_promise_then.

@sbc100 sbc100 requested a review from tlively May 14, 2026 18:01
@sbc100 sbc100 force-pushed the promise_then_null_handlers branch 2 times, most recently from 47e6d28 to 160b473 Compare May 14, 2026 19:39
Just like in the JS `promise.then` API it is now valid to pass
NULL (0) callbacks to emscripten_promise_then.
@sbc100 sbc100 force-pushed the promise_then_null_handlers branch from 160b473 to cbaee1b Compare May 14, 2026 20:27
@sbc100 sbc100 merged commit 2918b79 into emscripten-core:main May 14, 2026
30 checks passed
@sbc100 sbc100 deleted the promise_then_null_handlers branch May 14, 2026 23:15
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.

2 participants