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(lint/noSelfAssign): don't panic #549

Merged
merged 1 commit into from
Oct 19, 2023
Merged

Conversation

Conaclos
Copy link
Member

Summary

Fix #548

Test Plan

regerssion test added.

@Conaclos Conaclos temporarily deployed to Website deployment October 19, 2023 10:10 — with GitHub Actions Inactive
@Conaclos Conaclos requested a review from a team October 19, 2023 10:10
@github-actions github-actions bot added A-Linter Area: linter A-Website Area: website L-JavaScript Language: JavaScript and super languages A-Changelog Area: changelog labels Oct 19, 2023
@@ -713,7 +713,7 @@ impl TryFrom<(AnyNameLike, AnyNameLike)> for IdentifiersLike {
AnyNameLike::AnyJsLiteralExpression(right),
) => Ok(Self::Literal(left, right)),

_ => unreachable!("you should map the correct references"),
_ => Err(()),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the unreachable was there for a reason, which means we haven't mapped a specific type that we should

Copy link
Member

@ematipico ematipico left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, maybe using unreachable wasn't the safest choice. Let's ship it! 🚢

@ematipico ematipico merged commit 719c745 into main Oct 19, 2023
17 checks passed
@ematipico ematipico deleted the conaclos/lint/noSelfAssign/548 branch October 19, 2023 12:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Changelog Area: changelog A-Linter Area: linter A-Website Area: website L-JavaScript Language: JavaScript and super languages
Projects
None yet
Development

Successfully merging this pull request may close these issues.

🐛 processing panicked: internal error: entered unreachable code: you should map the correct references
2 participants