Add identifier name to node loc field (#90)
This commit is contained in:
committed by
Henry Zhu
parent
69e914baeb
commit
0b87d4c97c
@@ -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");
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user