Many nashorn java apps evaluate code using ScriptEngine.eval or "eval" or "Function". The script itself comes from variety of sources - file, url, string in the code, resource from a jar file etc. Just like -d option dumps generated .class files, it should also dump source scripts to help debugging.