Skip to content

Commit a4607d5

Browse files
committed
Fix source locs
1 parent 933d76a commit a4607d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plugins/catchExpression.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default function(parser) {
77
parser.__catchExpressionPluginInstalled = true;
88

99
pp.parseCatchExpression = function(expr) {
10-
const node = this.startNodeAt(expr.start);
10+
const node = this.startNodeAt(expr.start, expr.loc.start);
1111
node.expression = expr;
1212
const catchIndentLevel = this.state.indentLevel;
1313
const isEnd = () =>

0 commit comments

Comments
 (0)