[HtmlUnit] [htmlunit:bugs] #1907 Failed to parse javascript

Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

[HtmlUnit] [htmlunit:bugs] #1907 Failed to parse javascript

HtmlUnit - Dev mailing list

[bugs:#1907] Failed to parse javascript

Status: open
Group: 2.27
Created: Wed Aug 02, 2017 02:33 PM UTC by Christophe Darville
Last Updated: Wed Aug 02, 2017 02:33 PM UTC
Owner: nobody

Hello,

HtmlUnit failed to parse a Javascript (maybe the javascript is malformed) with the error :

ERROR [main] (com.gargoylesoftware.htmlunit.javascript.StrictErrorReporter) - error: message=[missing ; before statement] sourceName=...

Browsers are able to manage that missing ; so is there any parameter at the htmlUnit that would allow me set the parsing to a less strict mode ?

Regards,
Christophe


Sent from sourceforge.net because [hidden email] is subscribed to https://sourceforge.net/p/htmlunit/bugs/

To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/htmlunit/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
HtmlUnit-develop mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/htmlunit-develop
Reply | Threaded
Open this post in threaded view
|

[HtmlUnit] [htmlunit:bugs] #1907 Failed to parse javascript

HtmlUnit - Dev mailing list

Please provide test case.


[bugs:#1907] Failed to parse javascript

Status: open
Group: 2.27
Created: Wed Aug 02, 2017 02:33 PM UTC by Christophe Darville
Last Updated: Wed Aug 02, 2017 02:33 PM UTC
Owner: nobody

Hello,

HtmlUnit failed to parse a Javascript (maybe the javascript is malformed) with the error :

ERROR [main] (com.gargoylesoftware.htmlunit.javascript.StrictErrorReporter) - error: message=[missing ; before statement] sourceName=...

Browsers are able to manage that missing ; so is there any parameter at the htmlUnit that would allow me set the parsing to a less strict mode ?

Regards,
Christophe


Sent from sourceforge.net because [hidden email] is subscribed to https://sourceforge.net/p/htmlunit/bugs/

To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/htmlunit/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
HtmlUnit-develop mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/htmlunit-develop
Reply | Threaded
Open this post in threaded view
|

[HtmlUnit] [htmlunit:bugs] #1907 Failed to parse javascript

HtmlUnit - Dev mailing list
In reply to this post by HtmlUnit - Dev mailing list

Hi,

Here is the javascript file that failed to be parsed : https://goo.gl/iQCpw3

Regards,
Christophe


[bugs:#1907] Failed to parse javascript

Status: open
Group: 2.27
Created: Wed Aug 02, 2017 02:33 PM UTC by Christophe Darville
Last Updated: Wed Aug 02, 2017 02:44 PM UTC
Owner: nobody

Hello,

HtmlUnit failed to parse a Javascript (maybe the javascript is malformed) with the error :

ERROR [main] (com.gargoylesoftware.htmlunit.javascript.StrictErrorReporter) - error: message=[missing ; before statement] sourceName=...

Browsers are able to manage that missing ; so is there any parameter at the htmlUnit that would allow me set the parsing to a less strict mode ?

Regards,
Christophe


Sent from sourceforge.net because [hidden email] is subscribed to https://sourceforge.net/p/htmlunit/bugs/

To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/htmlunit/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
HtmlUnit-develop mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/htmlunit-develop
Reply | Threaded
Open this post in threaded view
|

[HtmlUnit] [htmlunit:bugs] #1907 Failed to parse javascript

HtmlUnit - Dev mailing list
In reply to this post by HtmlUnit - Dev mailing list

Ok, can reproduce your problem, but the js file hast 17000 lines, and contains also minified js code. If you like to have this fixed it will be a great help if you can strip down this to a simple sample.


[bugs:#1907] Failed to parse javascript

Status: open
Group: 2.27
Created: Wed Aug 02, 2017 02:33 PM UTC by Christophe Darville
Last Updated: Wed Aug 02, 2017 03:10 PM UTC
Owner: nobody

Hello,

HtmlUnit failed to parse a Javascript (maybe the javascript is malformed) with the error :

ERROR [main] (com.gargoylesoftware.htmlunit.javascript.StrictErrorReporter) - error: message=[missing ; before statement] sourceName=...

Browsers are able to manage that missing ; so is there any parameter at the htmlUnit that would allow me set the parsing to a less strict mode ?

Regards,
Christophe


Sent from sourceforge.net because [hidden email] is subscribed to https://sourceforge.net/p/htmlunit/bugs/

To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/htmlunit/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
HtmlUnit-develop mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/htmlunit-develop
Reply | Threaded
Open this post in threaded view
|

[HtmlUnit] [htmlunit:bugs] #1907 Failed to parse javascript

HtmlUnit - Dev mailing list
In reply to this post by HtmlUnit - Dev mailing list
  • status: open --> pending

[bugs:#1907] Failed to parse javascript

Status: pending
Group: 2.27
Created: Wed Aug 02, 2017 02:33 PM UTC by Christophe Darville
Last Updated: Wed Aug 02, 2017 05:09 PM UTC
Owner: nobody

Hello,

HtmlUnit failed to parse a Javascript (maybe the javascript is malformed) with the error :

ERROR [main] (com.gargoylesoftware.htmlunit.javascript.StrictErrorReporter) - error: message=[missing ; before statement] sourceName=...

Browsers are able to manage that missing ; so is there any parameter at the htmlUnit that would allow me set the parsing to a less strict mode ?

Regards,
Christophe


Sent from sourceforge.net because [hidden email] is subscribed to https://sourceforge.net/p/htmlunit/bugs/

To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/htmlunit/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
HtmlUnit-develop mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/htmlunit-develop
Reply | Threaded
Open this post in threaded view
|

[HtmlUnit] [htmlunit:bugs] #1907 Failed to parse javascript

HtmlUnit - Dev mailing list
In reply to this post by HtmlUnit - Dev mailing list

From a first look i guess class definitions like

class GeoRedirect {
}

are not supported by Rhino/Core-JS so far


[bugs:#1907] Failed to parse javascript

Status: pending
Group: 2.27
Created: Wed Aug 02, 2017 02:33 PM UTC by Christophe Darville
Last Updated: Wed Aug 02, 2017 05:09 PM UTC
Owner: nobody

Hello,

HtmlUnit failed to parse a Javascript (maybe the javascript is malformed) with the error :

ERROR [main] (com.gargoylesoftware.htmlunit.javascript.StrictErrorReporter) - error: message=[missing ; before statement] sourceName=...

Browsers are able to manage that missing ; so is there any parameter at the htmlUnit that would allow me set the parsing to a less strict mode ?

Regards,
Christophe


Sent from sourceforge.net because [hidden email] is subscribed to https://sourceforge.net/p/htmlunit/bugs/

To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/htmlunit/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
HtmlUnit-develop mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/htmlunit-develop