Skip to content

Commit ce319b1

Browse files
committed
replaced IllegalArgumentException with Error
There is no `IllegalArgumentException` in JS.
1 parent 5695aaa commit ce319b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/sax/TreeParser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ function TreeParser(contentHandler, lexicalHandler){
3030
this.locatorDelegate;
3131

3232
if (!contentHandler) {
33-
throw new IllegalArgumentException("contentHandler was null.");
33+
throw new Error("contentHandler was null.");
3434
}
3535
this.contentHandler = contentHandler;
3636
if (!lexicalHandler) {

0 commit comments

Comments
 (0)