-
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 '\'' in the benchmark's name breaks the html report #202
Comments
Good catch. While #203 does fix this issue, I think a better fix would be to fix the upstream bug at |
Bah, it turns out that the mustache specification does not include single quotes as characters that need to be escaped, so I'll leave some comments on #203. |
Fixed in #203. |
When I use apostrophe character in benchmark's name, all the charts in the html report are broken.
Steps to reproduce
./mybench --output report.html
Actual result:
none of the charts is displayed, and browser's console shows this error
Uncaught SyntaxError: Unexpected identifier
Inspecting the report more closely the error is coming from this piece of code generated in the report based on benchmark's name:
Literal inclusion of benchmark's name into the javascript apparently leads to premature finish of the string literal, causing the sytax error.
The text was updated successfully, but these errors were encountered: