Skip to content

fix(signals): avoid throwing when in check throws#5105

Merged
nolanlawson merged 5 commits intomasterfrom
nolan/fix-has-check
Jan 8, 2025
Merged

fix(signals): avoid throwing when in check throws#5105
nolanlawson merged 5 commits intomasterfrom
nolan/fix-has-check

Conversation

@nolanlawson
Copy link
Contributor

@nolanlawson nolanlawson commented Jan 8, 2025

Details

Fixes #5104

Avoids throwing an error when the in operator throws an error on an arbitrary object.

This should not cause any breaking changes, because we are trying to detect if an object "looks" like a signal, and if checking 'value' in object throws, then we can conclusively say it's not a signal.

Does this pull request introduce a breaking change?

  • 😮‍💨 No, it does not introduce a breaking change.

Does this pull request introduce an observable change?

  • 🤞 No, it does not introduce an observable change.

@nolanlawson nolanlawson requested a review from a team as a code owner January 8, 2025 17:30
nolanlawson and others added 3 commits January 8, 2025 09:38
Co-authored-by: Will Harney <62956339+wjhsf@users.noreply.github.com>
Co-authored-by: Will Harney <62956339+wjhsf@users.noreply.github.com>
@nolanlawson nolanlawson merged commit dc9f7d3 into master Jan 8, 2025
8 checks passed
@nolanlawson nolanlawson deleted the nolan/fix-has-check branch January 8, 2025 18:45
nolanlawson added a commit that referenced this pull request Jan 8, 2025
Co-authored-by: Will Harney <62956339+wjhsf@users.noreply.github.com>
nolanlawson added a commit that referenced this pull request Jan 8, 2025
Co-authored-by: Will Harney <62956339+wjhsf@users.noreply.github.com>
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.

Experimental signals error: "Blocked a frame with origin "..." from accessing a cross-origin frame"

2 participants