JDK9: http://cr.openjdk.java.net/~hannesw/8057691/webrev/src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/parser/Parser.java.udiff.html JDK8u http://cr.openjdk.java.net/~hannesw/8057691/webrev-8u-dev/src/jdk/nashorn/internal/parser/Parser.java.udiff.html
The resulting code is identical (no more nested scope for top-level let/const).
Thanks, Hannes
