From ab38d9d9798dd1df5c7b93f6165ac7c702f29c1f Mon Sep 17 00:00:00 2001 From: Zbynek Konecny Date: Sat, 7 Dec 2024 00:52:22 +0100 Subject: [PATCH] Fix JS to Java exception conversion for UncaughtExceptionHandler --- gwt-core/src/main/java/org/gwtproject/core/client/GWT.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gwt-core/src/main/java/org/gwtproject/core/client/GWT.java b/gwt-core/src/main/java/org/gwtproject/core/client/GWT.java index d8fea32..03d7d5d 100644 --- a/gwt-core/src/main/java/org/gwtproject/core/client/GWT.java +++ b/gwt-core/src/main/java/org/gwtproject/core/client/GWT.java @@ -152,7 +152,7 @@ private static void addOnErrorHandler(Window window, Window.OnerrorFn onerrorFn) @JsMethod private static native Throwable fromObject(Object obj) /*-{ //GWT2 impl using JSNI, see GWT.native.js for the j2cl impl - var throwable = @java.lang.Throwable::of(*)(obj); + return @java.lang.Throwable::of(*)(obj); }-*/; @JsType(isNative = true, name = "window", namespace = "")