New: record the source filename in SyntaxError.

This commit is contained in:
Aparajita Fishman
2013-04-20 13:24:50 -04:00
parent 60f79bdf63
commit 7ec660c509
+1
View File
@@ -215,6 +215,7 @@ if (!exports.acorn) {
syntaxError.column = pos.column;
syntaxError.lineStart = pos.lineStart;
syntaxError.lineEnd = pos.lineEnd;
syntaxError.fileName = sourceFile;
throw syntaxError;
}