Line numbers not passed to ErrorReporter in JavascriptCompressor


Currently, only the message is passed to the ErrorReporter, with a line number of -1, for warnings and errors. When using JavascriptCompressor to not only compress but also verify the correctness of the javascript, line numbers would be extremely helpful in letting the user know where their error has occurred.


freeranger wrote Jan 29, 2012 at 6:44 PM

PK - this issue is assigned to you, but I have checked in changeset 74437 - line numbers, where available, will now be included in error and warning messages which will at least help things somewhat.
Warnings coming from JavaScriptCompressor.cs definitely won't have line numbers currently, but the ones coming from EcmaScript should have.

wrote Feb 22, 2013 at 12:55 AM