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

Patch (un)balance_relative to avoid panicking #48

Merged
merged 1 commit into from
Jun 19, 2024
Merged

Conversation

jedel1043
Copy link
Member

A simple patch to avoid panics in Boa, since we'll eventually fix that when the spec is a bit more stable.

@jedel1043 jedel1043 added the C-bug Something isn't working label Jun 2, 2024
@jedel1043 jedel1043 added this to the 0.1 Blocking milestone Jun 2, 2024
@jedel1043 jedel1043 removed this from the 0.1 Blocking milestone Jun 2, 2024
Copy link
Member

@nekevss nekevss left a comment

Choose a reason for hiding this comment

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

Good patch. Definitely need to avoid using expect and use some sort of assertion error 🫤

@jedel1043
Copy link
Member Author

Good patch. Definitely need to avoid using expect and use some sort of assertion error 🫤

Yeah, it would be nice to have the library be panic free.

@nekevss
Copy link
Member

nekevss commented Jun 2, 2024

Yeah, I was already adding an assertion error into the parser PR. Maybe it would be better off as a separate PR but it should be soon. I'm definitely not super thrilled with using expect on asserts without a good way to test everything.

@nekevss
Copy link
Member

nekevss commented Jun 8, 2024

Is it worth rebasing and using the new functionality from #50

@jedel1043
Copy link
Member Author

Yep, gonna do that

@jedel1043 jedel1043 force-pushed the patch-panics branch 3 times, most recently from 27324c9 to 6bfd042 Compare June 17, 2024 00:00
@jedel1043 jedel1043 merged commit 09b66b5 into main Jun 19, 2024
5 checks passed
@jedel1043 jedel1043 deleted the patch-panics branch June 19, 2024 03:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants