Menu

Tree [r15560] / branches / js9 /
 History

HTTPS access


File Date Author Commit
 src 2017-01-07 asashour [r13296] js9: organize imports
 README.txt 2017-01-07 asashour [r13296] js9: organize imports
 pom.xml 2016-12-01 asashour [r13097] js9: initial code

Read Me

This project is a Nashorn fork to suit HtmlUnit need.

It is currently based on Nashorn code from http://hg.openjdk.java.net/jdk9/dev/nashorn/
as of 7 January 2017

- Global is the mandatory 'this' or 'top level' object in Nashorn, and it is with a one-to-one relation with Window.
HtmlUnit uses window, and Nashorn calls Global.
- ScriptConext is one per WebWindow.
- The entry point of dynamic linking is DynamicLinker (specially .relink()).


Main customizations:
- Function.arguments should always exist (can be detected by arguments.callee.arguments):
  fixed in Global.allocateArguments() and FunctionNode.needsArguments()
- Handle return statements outside function:
  fixed in Parser.returnStatement()
- When setting property of another Global, don't use the current one
  fixed in SetMethodCreator.createGlobalPropertySetter 
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.