new Error to Error

This commit is contained in:
the-djmaze 2024-03-04 01:12:40 +01:00
parent 870019d2df
commit 644c8ad389
13 changed files with 44 additions and 44 deletions

View file

@ -41,7 +41,7 @@
++depth;
}
if (!allowUnbalanced)
throw new Error("Cannot find closing comment tag to match: " + startComment.nodeValue);
throw Error("Cannot find closing comment tag to match: " + startComment.nodeValue);
return null;
}
@ -96,7 +96,7 @@
}
let first = node.firstChild;
if (first && isEndComment(first)) {
throw new Error("Found invalid end comment, as the first child of " + node);
throw Error("Found invalid end comment, as the first child of " + node);
}
return first;
},