Very cool!
I'm wondering if it will work on Nashorn. I actually have a need to be able to debug JavaScript code running inside Nashorn without touching the JVM debugger.
The compiler may not because it uses a few node APIs, but those could be easily ported. The compiled code should definitely run; it's vanilla ES5 JavaScript.