Skip to content

Commit

Permalink
more on error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
rbri committed Feb 2, 2025
1 parent 1086364 commit fee634a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public BeforeUnloadEvent() {
*/
@JsxConstructor
public void jsConstructor() {
throw JavaScriptEngine.throwAsScriptRuntimeEx(new IllegalArgumentException("Illegal Constructor"));
throw JavaScriptEngine.typeError("Illegal Constructor");
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ public void create_ctor() throws Exception {
FF = "TypeError",
FF_ESR = "TypeError")
// audioCtx.createBuffer is missing
@HtmlUnitNYI(CHROME = "exception",
EDGE = "exception")
@HtmlUnitNYI(CHROME = "TypeError",
EDGE = "TypeError")
public void create_ctorAllDetails() throws Exception {
final String html = HtmlPageTest.STANDARDS_MODE_PREFIX_
+ "<html><head><script>\n"
Expand Down

0 comments on commit fee634a

Please sign in to comment.