Skip to content

Commit

Permalink
start working on reducing the core-js dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
rbri committed Oct 9, 2023
1 parent ceaa531 commit ef7f055
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/main/java/org/htmlunit/html/HtmlDomTreeWalker.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
*/
package org.htmlunit.html;

import org.htmlunit.corejs.javascript.Context;
import org.w3c.dom.DOMException;
import org.w3c.dom.Node;
import org.w3c.dom.traversal.NodeFilter;
Expand Down Expand Up @@ -57,8 +56,7 @@ public class HtmlDomTreeWalker {
public HtmlDomTreeWalker(final DomNode root, final int whatToShow, final NodeFilter filter,
final boolean expandEntityReferences) throws DOMException {
if (root == null) {
Context.throwAsScriptRuntimeEx(new DOMException(DOMException.NOT_SUPPORTED_ERR,
"root must not be null"));
throw new IllegalArgumentException("root must not be null");
}
root_ = root;
whatToShow_ = whatToShow;
Expand Down

0 comments on commit ef7f055

Please sign in to comment.