Open wisniewskib opened 3 years ago
Looks like another incarnation of this Rhino problem - https://github.com/mozilla/rhino/issues/652.
Hi @rbri,
Here's an example of the same error, but using a default parameter. If you use HtmlUnit 2.50 to GET a page containing:
<script>
const engine = {
callme(message = 'Default message') {
console.log(message)
}
}
engine.callme()
engine.callme('Hello')
</script>
You'll get:
com.gargoylesoftware.htmlunit.ScriptException: missing ) after formal parameters (script in http://localhost/mine.html from (11, 13) to (19, 14)#13)
Unfortunately Bootstrap 5.0 does this, so HtmlUnit can't load a Bootstrap 5 page. If this is an unrelated issue, please let me know and I'll create a new issue.
There is some hope for this, the Rhino community is working on various improvements at the moment. And rest parameters are already in the works. Please be a bit more patient. Or have a look at twitter - will always inform about the progress there.
Encountered same issue after updating to Bootstrap 5.
This is the rhino issue regarding default parameters: https://github.com/mozilla/rhino/issues/678
Hi, I see this isssue still open. is there any update please?
Hi, same exception with page https://intoli.com/blog/not-possible-to-block-chrome-headless/chrome-headless-test.html
Hi, Any plan to fix this issue ?
Hmm, yes...any plans to fix this?
any update on this? I am facing the similar issue:
Caused by: org.htmlunit.corejs.javascript.EvaluatorException: missing formal parameter
@rbri is there a plan to fix this? with an ETA possibly? Occurs on v3.5.0 too (latest stable at this point in time).
Still an issue on HtmlUnit 3.9.0. 3 years has gone by since this issue was created.
4 years issue still there htmlunit-core-js-3.11.0.jar
Sorry folks, but I'm doing all the work on this in my spare time. And i made many improvements for rhino already. If you need some progress here, you can provide a pull request or you can sponsor my work to give me the chance to spend some time on this.
see #755
I'm trying to scape gog.com with HtmlUnit 2.43. I'm getting an EvaluatorException when I execute my code with JavaScript enabled. I can't disable JavaScript because the website is built in Angular.
My Code:
Stack trace: