For example, the importPackage command will not work correctly. You would need to use the JavaImporter function to complete the same action in Nashorn.
Resolving The Problem
For more information about Mozilla Rhino and Oracle Nashorn that may impact your script code in JS, go to the StackOverflow forum and search for “Switching from Rhino to Nashorn”.
17 June 2018