Skip to content

Commit

Permalink
Update packages/babel-parser/src/parser/location.js
Browse files Browse the repository at this point in the history
Co-Authored-By: Nicol貌 Ribaudo <nicolo.ribaudo@gmail.com>
  • Loading branch information
JLHwung and nicolo-ribaudo committed Mar 3, 2020
1 parent f2b51c2 commit 63bd85c
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions packages/babel-parser/src/parser/location.js
Expand Up @@ -226,14 +226,7 @@ export default class LocationParser extends CommentsParser {
errorTemplate.replace(/%(\d+)/g, (_, i: number) => params[i]) +
` (${loc.line}:${loc.column})`;
return this._raise(
Object.assign(
{},
{
loc,
pos,
},
data,
),
Object.assign(({ loc, pos }: Object), data),
message,
);
}
Expand Down

0 comments on commit 63bd85c

Please sign in to comment.