Skip to content

Commit ab38d9d

Browse files
committed
Fix JS to Java exception conversion for UncaughtExceptionHandler
1 parent 6f9f451 commit ab38d9d

File tree

1 file changed

+1
-1
lines changed
  • gwt-core/src/main/java/org/gwtproject/core/client

1 file changed

+1
-1
lines changed

gwt-core/src/main/java/org/gwtproject/core/client/GWT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ private static void addOnErrorHandler(Window window, Window.OnerrorFn onerrorFn)
152152
@JsMethod
153153
private static native Throwable fromObject(Object obj) /*-{
154154
//GWT2 impl using JSNI, see GWT.native.js for the j2cl impl
155-
var throwable = @java.lang.Throwable::of(*)(obj);
155+
return @java.lang.Throwable::of(*)(obj);
156156
}-*/;
157157

158158
@JsType(isNative = true, name = "window", namespace = "<window>")

0 commit comments

Comments
 (0)