-
-
Notifications
You must be signed in to change notification settings - Fork 172
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
HtmlUnit fails to parse script faces.js from MyFaces 4.0.2 #732
Comments
@tandraschko, The problem here is (again) som js feature support in rhino. The faces.js implementation uses rest parameters (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/rest_parameters) e.g.
that are currently not supported by Rhino. What to do? Option 1: wait until Rhino moves forward here - in the past i have provided many updates to rhino but its getting harder because of the backward compatibility that rhino likes to manage Option 2: I have a plan to replace the js engine by something more modern, but this is a huge effort and might not be available during the next months (you can of course ask your boss to sponsor my work (https://github.com/sponsors/rbri) to make this a bit faster). Please be a bit patient regarding this, i plan to announce the plan and more details soon Option 3: Patch the faces.js file 'on the fly' and replace the problematic statements with some rhino compatible stuff. I did this already for Htmx and it is possible for this also. At least if you like to test bigger MyFaces projects (or many) this might be a good solution. Please give me a sign, if you like to go with option 3 for some time and i will try to help you with this. |
Looks like i have rhino support for function rest parameters ready... will release something during the next days |
that sounds great! Thank you! :) NOTE: i'm just working on another OS project, Apache DeltaSpike, and i'm trying to fix our integration tests for new JakartaEE 10 |
is there any expected release date yet? :) |
@tandraschko sorry but the fix i made for rhino (mozilla/rhino#1451) seems to be only the first required one. The js file not only uses rest paramters but also spread syntax support. At the moment i like to focus on #755 - this will solve the problem at all. |
I get following exception in my integration test environment:
Line Number: 2
Column Number: 864
The JS can be found here:
https://repo1.maven.org/maven2/org/apache/myfaces/core/myfaces-api/4.0.2/myfaces-api-4.0.2.jar
extract it and you can find it here:
\META-INF\resources\jakarta.faces\faces.js
the exception is there since v2.13 and still fails with 3.10.0
The text was updated successfully, but these errors were encountered: