Skip to content

[3/6] Validate functions and reject Promise predicates - #3

Merged
GlenTiki merged 1 commit into
masterfrom
modernize/03-validation
Oct 8, 2026
Merged

GlenTiki merged 1 commit into
masterfrom
modernize/03-validation

Conversation

@GlenTiki

@GlenTiki GlenTiki commented Oct 8, 2026

Copy link
Copy Markdown
Owner

I validate conditions and callbacks before use, including replacements through the setters. I reject Promise and callable-thenable predicate results instead of treating them as true, and consume their settlement to prevent an additional unhandled rejection.

This is PR 3 of 6 in the modernisation stack. It depends on #2. Review and merge the stack in order.

Polling frequency is left to the next PR.

@GlenTiki
GlenTiki force-pushed the modernize/03-validation branch from 46b4467 to 344c142 Compare October 8, 2026 13:05
@GlenTiki
GlenTiki added this pull request to stack #7 October 8, 2026 13:12
@GlenTiki
GlenTiki force-pushed the modernize/03-validation branch from 344c142 to cd29630 Compare October 8, 2026 13:13
Base automatically changed from modernize/02-cancellation to master October 8, 2026 13:14
@GlenTiki
GlenTiki force-pushed the modernize/03-validation branch from cd29630 to 1ecc049 Compare October 8, 2026 13:14
@GlenTiki
GlenTiki merged commit bec7f9e into master Oct 8, 2026
3 checks passed
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