Skip to content
This repository has been archived by the owner on May 19, 2018. It is now read-only.

Commit

Permalink
Add identifier name to node loc field
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian McKenzie committed Aug 15, 2016
1 parent 69e914b commit 58f7130
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/parser/expression.js
Original file line number Diff line number Diff line change
Expand Up @@ -979,6 +979,8 @@ pp.parseIdentifier = function (liberal) {
this.raise(node.start, "invalid use of await inside of an async function");
}

node.loc.identifierName = node.name;

this.next();
return this.finishNode(node, "Identifier");
};
Expand Down

0 comments on commit 58f7130

Please sign in to comment.