We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
SyntaxError
1 parent a707bfe commit 7b38623Copy full SHA for 7b38623
acorn/src/location.js
@@ -12,6 +12,9 @@ const pp = Parser.prototype
12
pp.raise = function(pos, message) {
13
let loc = getLineInfo(this.input, pos)
14
message += " (" + loc.line + ":" + loc.column + ")"
15
+ if (this.sourceFile) {
16
+ message += " in " + this.sourceFile
17
+ }
18
let err = new SyntaxError(message)
19
err.pos = pos; err.loc = loc; err.raisedAt = this.pos
20
throw err
0 commit comments