Newline in code throwing an error
Any time I try compiling a file, I always get an error after the first newline in the file.
SyntaxError: Unexpected character ' ' (1:18) in <eval> at line number 7659 at column number 12
The line can be anything, from
"use strict" to declaring a variable. I've tested it using single line functions via the JS API and then inserting
"\n" at the end of it and can firmly say that the error is from the newline declaration.
I'm currently running it in Java 8 (Nashorn engine), though I doubt that has anything to do with the error as I'm executing the tests from a console that is compiling the input via Buble before it even touches the Java code.