Skip to content

Conversation

@mattnibs
Copy link
Collaborator

@mattnibs mattnibs commented Jan 15, 2026

This commit removes the caching logic from the sequential runtime implementation of the HasError function. There was a bug in the current implementation where unions values that had an error type but were not errors themselves would report the entire union type as a cacheable non-error then subsequent error values of that union would get false reported as not having an error. This caching behavior could be fixed with additional logic but since we are not so interested in performance in the sequential runtime remove the caching and simplify the logic.

Fixes #6199

@mattnibs mattnibs requested a review from a team January 15, 2026 00:43
This commit removes the caching logic from the sequential runtime
implementation of the HasError function. There was a bug in the
current implementation where unions values that had an error type but
were not errors themselves would report the entire union type as a cacheable
non-error then subsequent error values of that union would get false
reported as not having an error. This caching behavior could be fixed with
additional logic but since we are not so interested in performance in
the sequential runtime remove the caching and simplify the logic.

Fixes #6199
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