fix errorWithNode line mapping

This commit is contained in:
Sebastian McKenzie 2014-11-03 17:50:25 +11:00
parent 795183569d
commit c963c30107

View File

@ -90,8 +90,7 @@ File.prototype.errorWithNode = function (node, msg) {
}
var err = new SyntaxError("Line " + loc.line + ": " + msg);
err.lineNumber = loc.line;
err.column = loc.column;
err.loc = loc;
return err;
};