-
-
Notifications
You must be signed in to change notification settings - Fork 411
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 a Parser Idempotency Issue #3172
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3172 +/- ##
=======================================
Coverage 44.63% 44.64%
=======================================
Files 487 487
Lines 50554 50554
=======================================
+ Hits 22563 22568 +5
+ Misses 27991 27986 -5 ☔ View full report in Codecov by Sentry. |
Nice fix! |
Yeah, this was discovered by the fuzzer but I'm not sure if it requires an additional test because the additional braces were added by how the |
We should still have a test, to make sure that we don't introduce a regression in the future. |
Waiting on adding the required test to merge this. @raskad will take care of that. |
This PR fixes boa-dev#3133 by correctly implementing `ToIndentedString` for `with` statement. It also replaces the existing `ToInternedString` implementation because it is implemented for all types implementing `ToIndentedString` in `boa_interner/src/lib.rs`.
c2fd438
to
5bcaf27
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contribution!
This PR fixes #3133 by correctly implementing
ToIndentedString
forwith
statement.This also replaces the existing
ToInternedString
implementation because it is implemented for all types implementingToIndentedString
inboa_interner/src/lib.rs
.