Created attachment 412510 [details]
Test which demonstrates the error
In the attached file the script tags contain the same syntax error.
Both errors appear in the console but only one shows the correct line number.
This is happens for a vast series of errors and in many situations, making it difficult to debug code in ES6 (and also promises).