mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-08-25 21:17:03 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user