Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 5 commits into from
Jan 8, 2025

Conversation

nolanlawson
Copy link
Collaborator

@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
packages/@lwc/engine-core/src/framework/utils.ts Outdated Show resolved Hide resolved
@nolanlawson nolanlawson merged commit dc9f7d3 into master Jan 8, 2025
11 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
nolanlawson added a commit that referenced this pull request Jan 8, 2025
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