We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a557235 commit 4f5f7a5Copy full SHA for 4f5f7a5
src/changes/changes.xml
@@ -8,6 +8,9 @@
8
9
<body>
10
<release version="4.10.0" date="February xx, 2025" description="Bugfixes">
11
+ <action type="fix" dev="rbri">
12
+ AbstractRange.ctor() throws a TypeError.
13
+ </action>
14
<action type="fix" dev="rbri">
15
DOMTokenList - several fixes to throw the correct error.
16
</action>
src/main/java/org/htmlunit/javascript/host/dom/AbstractRange.java
@@ -47,7 +47,7 @@ public AbstractRange() {
47
*/
48
@JsxConstructor
49
public void jsConstructor() {
50
- throw JavaScriptEngine.reportRuntimeError("Illegal constructor.");
+ throw JavaScriptEngine.typeError("Illegal constructor.");
51
}
52
53
/**
0 commit comments