-
-
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
ScriptException: identifier is a reserved word: class #480
Comments
I have recreated the error in IntelliJ with htmlunit built from source, but it appears that the problem is in either The exception is thrown by this line: htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/JavaScriptEngine.java Line 816 in a7d65d7
net.sourceforge.htmlunit.corejs.javascript.Context
I need to figure out how to do the build so cyberneko and corejs is from source too. |
Looking in The following is given as an example:
I'm not sure what about that makes it a class decorator. Is there another way to write that code so it isn't considered a class decorator? I'm thinking about a work-around where I would add a pre-processor like |
Will try to have a look.... |
Was just coming to write a ticket for this. If it helps, here's a one-liner to reproduce:
|
Have started some work to optionally integrate babel as preprocessor for the scrips to overcome some Rhino limitations. But this will requires some time. |
Sounds like a great idea for how to manage the Rhino limitations. |
hey, any progress? |
sorry, no, far too many other activities |
Revisiting this after a long while. As of 3.5.0, the problem still persists. Wow, reading my earlier investigations from April 2022 on this topic, I'm pretty sure I'm dumber now than I used to be, LOL! |
I have also encountered this problem. Do you have any good solutions |
see #755 |
This exception is being thrown and I think it might be why I'm unable to progress through testing.
The complete stack trace is attached.
EvaluatorException_IdentifierIsAReservedWord.txt
Version: 2.60.0, running on MS Windows
The text was updated successfully, but these errors were encountered: