Skip to content

Commit

Permalink
deps: update extractErrors plugin's evalToString file
Browse files Browse the repository at this point in the history
- a line was added upstream in the last year, so add it here too to be
  up-to-date
  - now only transformErrorMessages is out-of-date ...but there's a
    little too many changes for me to really prioritize right now
  • Loading branch information
agilgur5 committed Sep 21, 2020
1 parent 33a6bde commit 0e45050
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/errors/evalToString.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
export function evalToString(ast: any): string {
switch (ast.type) {
case 'StringLiteral':
case 'Literal': // ESLint
return ast.value;
case 'BinaryExpression': // `+`
if (ast.operator !== '+') {
Expand Down

1 comment on commit 0e45050

@vercel
Copy link

@vercel vercel bot commented on 0e45050 Sep 21, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.