mozilla / rhino

Rhino is an open-source implementation of JavaScript written entirely in Java
https://rhino.github.io
Other
4.19k stars 851 forks source link

fix endless loop in ScriptRuntimem toString() and toNumber() and add tests to ensure backward comatibility #1701

Closed rbri closed 1 month ago

rbri commented 1 month ago

while integrating the latest changes into htmlunit core-js i noticed that i have introduced a no longer backward compatible behaviour. Sorry - and in fact this introduces an endless loop for some calls.

This fixes that...

gbrail commented 1 month ago

Looks good -- thanks!

rbri commented 1 month ago

Thanks @gbrail