Skip to content

Commit

Permalink
AbstractRange.ctor() throws a TypeError
Browse files Browse the repository at this point in the history
  • Loading branch information
rbri committed Feb 2, 2025
1 parent a557235 commit 4f5f7a5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/changes/changes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@

<body>
<release version="4.10.0" date="February xx, 2025" description="Bugfixes">
<action type="fix" dev="rbri">
AbstractRange.ctor() throws a TypeError.
</action>
<action type="fix" dev="rbri">
DOMTokenList - several fixes to throw the correct error.
</action>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public AbstractRange() {
*/
@JsxConstructor
public void jsConstructor() {
throw JavaScriptEngine.reportRuntimeError("Illegal constructor.");
throw JavaScriptEngine.typeError("Illegal constructor.");
}

/**
Expand Down

0 comments on commit 4f5f7a5

Please sign in to comment.