htmlunit-core-js differences #2251
rbri
started this conversation in
Show and tell
Replies: 1 comment
-
|
In general these make absolute sense. We've had "make as many feature checks compile time rather than runtime" on our internal TODO list for a while, but it's never to the top of the pile. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The HtmlUnit project uses a slightly modified fork of Rhino (https://github.com/HtmlUnit/htmlunit-rhino-fork / https://github.com/HtmlUnit/htmlunit-core-js).
As discussed in the last developer meeting, I'd like to document the changes here.
General
Serialization
HtmlUnit offers serialization support for the page JavaScript and therefore serialization has to be supported by more classes/interfaces.
Activation/caller
Array sorting
const
There are several longstanding issues with the const support in Rhino (not fixed due to breaking backward compatibility). core-js has some patches to let more js code run:
function.toString()
Array ctor methods
A bunch of methods are available on the Rhino ctor for historical reasons but they are no longer there in the browsers. The definition of these methods is commented out.
indirect eval() calls
Optimization
Beta Was this translation helpful? Give feedback.
All reactions