Merge pull request #2221 from mrcarlberg/no_line_information_for_errors_on_line_zero

Fixed: No line information for compiler errors on the first line of a file
This commit is contained in:
Antoine Mercadal
2014-09-30 16:52:25 -07:00
+1 -1
View File
@@ -383,7 +383,7 @@ var ObjJAcornCompiler = function(/*String*/ aString, /*CFURL*/ aURL, /*unsigned*
this.tokens = exports.acorn.parse(aString);
}
catch (e) {
if (e.lineStart)
if (e.lineStart != null)
{
var message = this.prettifyMessage(e, "ERROR");
#ifdef BROWSER