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 5d34208 commit 1de2d0fCopy full SHA for 1de2d0f
5 files changed
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
+ Geolocation.ctor() throws a TypeError.
13
+ </action>
14
<action type="fix" dev="rbri">
15
TreeWalker.ctor() throws a TypeError.
16
</action>
src/main/java/org/htmlunit/javascript/host/geo/Geolocation.java
@@ -47,7 +47,7 @@ public class Geolocation extends HtmlUnitScriptable {
47
*/
48
@JsxConstructor
49
public void jsConstructor() {
50
- throw JavaScriptEngine.reportRuntimeError("Illegal constructor.");
+ throw JavaScriptEngine.typeError("Illegal constructor.");
51
}
52
53
/**
src/test/java/org/htmlunit/javascript/host/event/KeyboardEventTest.java
@@ -446,10 +446,10 @@ public void initKeyEvent() throws Exception {
446
FF_ESR = {"NotSupportedError",
447
"keydown, true, true, Fn, 0, true, true, true, true, 0, 0",
448
"keyup, false, false, , 7, false, false, false, false, 0, 0"})
449
- @HtmlUnitNYI(CHROME = {"exception",
+ @HtmlUnitNYI(CHROME = {"NotSupportedError",
450
451
"keyup, false, false, , 7, false, false, false, false, 0, 0"},
452
- EDGE = {"exception",
+ EDGE = {"NotSupportedError",
453
454
455
public void initKeyboardEvent() throws Exception {
src/test/java/org/htmlunit/javascript/host/intl/DateTimeFormat2Test.java
@@ -1335,7 +1335,7 @@ public void format_no_no() throws Exception {
1335
* @throws Exception if the test fails
1336
1337
@Test
1338
- @Alerts("exception")
+ @Alerts("RangeError")
1339
public void format_no_no_ny() throws Exception {
1340
test("new Intl.DateTimeFormat('no-NO-NY').format(date)");
1341
src/test/java/org/htmlunit/javascript/host/intl/NumberFormat2Test.java
@@ -1201,7 +1201,7 @@ public void format_no_no() throws Exception {
1201
1202
1203
1204
1205
1206
test("new Intl.NumberFormat('no-NO-NY').format(number)");
1207
0 commit comments