Skip to content

Commit

Permalink
Reverted handling exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
niloc132 committed Sep 25, 2024
1 parent 39eb160 commit 5e94243
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions user/src/com/google/gwt/user/client/impl/WindowImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,7 @@ public native void initWindowBeforeUnloadHandler() /*-{
try {
ret = $entry(@com.google.gwt.user.client.Window::onClosing())();
} finally {
try {
oldRet = oldOnBeforeUnload && oldOnBeforeUnload(evt);
} catch (unhandled) {
// Pass to uncaught exception handler, if registered
$wnd.onerror(unhandled);
}
oldRet = oldOnBeforeUnload && oldOnBeforeUnload(evt);
}
// Avoid returning null as IE6 will coerce it into a string.
// Ensure that "" gets returned properly.
Expand Down

0 comments on commit 5e94243

Please sign in to comment.