committed by
Mrugesh Mohapatra
parent
f6999fa8bb
commit
8538141600
@ -9,7 +9,7 @@ function extractComments(js) {
|
|||||||
try {
|
try {
|
||||||
parser.parse(js, { onComment: comments, ecmaVersion: 2020 });
|
parser.parse(js, { onComment: comments, ecmaVersion: 2020 });
|
||||||
} catch {
|
} catch {
|
||||||
throw Error(`extract-js-comments could not parse the code below, this challenge have invalid syntax:
|
throw Error(`extract-js-comments could not parse the code below, this challenge has invalid syntax:
|
||||||
|
|
||||||
${js}
|
${js}
|
||||||
`);
|
`);
|
||||||
|
Reference in New Issue
Block a user