From 2f7681f881530e9918cef90c6629a180a8f49d7f Mon Sep 17 00:00:00 2001 From: Martin Carlberg Date: Fri, 26 Sep 2014 13:28:44 +0200 Subject: [PATCH] Fixed: No line information was provided for compiler errors on the first line of a file --- Objective-J/ObjJAcornCompiler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Objective-J/ObjJAcornCompiler.js b/Objective-J/ObjJAcornCompiler.js index e1cf72b07..8b6582a68 100644 --- a/Objective-J/ObjJAcornCompiler.js +++ b/Objective-J/ObjJAcornCompiler.js @@ -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