-
Notifications
You must be signed in to change notification settings - Fork 86
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
Presence of double quotes in benchmark name produces broken HTML report #235
Comments
This is a regression that was introduced in #232, which changed the way that JSON is escaped. cc'ing @considerate, the author. |
@RyanGlScott @adamgundry I see, the escaping of Line 132 in 2fdd87b
|
I'll have to come back to this some other day when I'm more well rested. However, I've verified that the offending field parses correctly in the same browser that fails on the full report data: Running this in the developer console of both chromium and firefox works for me: EDIT: This may be because JavaScript is unescaping the unicode escape sequences before |
I think the same argument applies for the escape sequences |
I've uploaded |
Similarly to #202 and #204, calling
bench
with a string containing double quotes leads to a HTML report that produces a JavaScript error in the browser console. Tested with criterion 1.5.9.0.For example, generating a HTML report with this variant of the code from #202 illustrates the issue:
The text was updated successfully, but these errors were encountered: