| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent c801de9 commit 9f13b5f
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -21,7 +21,8 @@ function checkThrowsArguments(context, node) { | |||
| 21 | 21 | }); | |
| 22 | 22 | } else if (args.length > 1) { | |
| 23 | 23 | const error = args[1]; | |
| 24 | - if (error.type === 'Literal' && typeof error.value === 'string') { | ||
| 24 | + if (error.type === 'Literal' && typeof error.value === 'string' || | ||
| 25 | + error.type === 'TemplateLiteral') { | ||
| 25 | 26 | context.report({ | |
| 26 | 27 | message: 'Unexpected string as second argument', | |
| 27 | 28 | node: error | |
| Back | FazBrowse Home | New Git URL |
0 commit comments