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

Update Chart.js support #802

Open
blasss opened this issue Jun 25, 2024 · 2 comments
Open

Update Chart.js support #802

blasss opened this issue Jun 25, 2024 · 2 comments

Comments

@blasss
Copy link

blasss commented Jun 25, 2024

HTMLUnit currently includes support for Chart.js version 2.9.4 (https://github.com/HtmlUnit/htmlunit/tree/master/src/test/resources/libraries/chartjs/2.9.4) but the latest version is currently 4.4.3 (https://www.chartjs.org/docs/latest/api/).

Using the latest version of Chart.js should be possible, but fails with a JavaScript error ("redeclaration of const..."), that seems to be related to a rhino bug (mozilla/rhino#326).

@blasss
Copy link
Author

blasss commented Jun 27, 2024

I saw a commit related to the mentioned "redeclaration of const..." in the latest 4.3.0 release and gave it another try.
Unfortunately it is still failing. This time it seems to be related to using default parameters ("missing ) after formal parameters")...

@rbri
Copy link
Member

rbri commented Jun 27, 2024

@blasss Yes i know (i also did a quick test) but there is hope for this problem also; see mozilla/rhino#1481

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants