From 7ec660c509217354dbfddc4f4b0fe19ea692f0df Mon Sep 17 00:00:00 2001 From: Aparajita Fishman Date: Sat, 20 Apr 2013 13:24:50 -0400 Subject: [PATCH] New: record the source filename in SyntaxError. --- Objective-J/acorn.js | 1 + 1 file changed, 1 insertion(+) diff --git a/Objective-J/acorn.js b/Objective-J/acorn.js index 8af2eaf55..a458a8ef8 100644 --- a/Objective-J/acorn.js +++ b/Objective-J/acorn.js @@ -215,6 +215,7 @@ if (!exports.acorn) { syntaxError.column = pos.column; syntaxError.lineStart = pos.lineStart; syntaxError.lineEnd = pos.lineEnd; + syntaxError.fileName = sourceFile; throw syntaxError; }