Skip to content

Commit

Permalink
Fix typo in windowonerror property name
Browse files Browse the repository at this point in the history
Change-Id: I5cf0c2c7a1f5c35393cd08a3f06c53f90a045cd5
  • Loading branch information
tbroyer committed Oct 12, 2017
1 parent 2571d07 commit beecee6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions user/src/com/google/gwt/core/Core.gwt.xml
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@
- Only trap window.onerror if there is no current window.onerror handler (REPORT_IF_NO_HANDLER)
- Do not trap anything (legacy behavior) (IGNORE)
-->
<define-property name="gwt.uncaughtexceptionhander.windowonerror" values="IGNORE, REPORT, REPORT_IF_NO_HANDLER" />
<set-property name="gwt.uncaughtexceptionhander.windowonerror" value="IGNORE"/>
<define-property name="gwt.uncaughtexceptionhandler.windowonerror" values="IGNORE, REPORT, REPORT_IF_NO_HANDLER" />
<set-property name="gwt.uncaughtexceptionhandler.windowonerror" value="IGNORE"/>

<!-- To support legacy logging flags -->
<inherits name="com.google.gwt.logging.LogImpl"/>
Expand Down
4 changes: 2 additions & 2 deletions user/src/com/google/gwt/core/client/impl/Impl.java
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ public static void setUncaughtExceptionHandlerForTest(
private static boolean onErrorInitialized;

public static void maybeInitializeWindowOnError() {
if ("IGNORE".equals(System.getProperty("gwt.uncaughtexceptionhander.windowonerror"))) {
if ("IGNORE".equals(System.getProperty("gwt.uncaughtexceptionhandler.windowonerror"))) {
return;
}
if (onErrorInitialized) {
Expand All @@ -182,7 +182,7 @@ public static void maybeInitializeWindowOnError() {
onErrorInitialized = true;
boolean alwaysReport =
"REPORT"
.equals(System.getProperty("gwt.uncaughtexceptionhander.windowonerror"));
.equals(System.getProperty("gwt.uncaughtexceptionhandler.windowonerror"));
registerWindowOnError(alwaysReport);
}

Expand Down

0 comments on commit beecee6

Please sign in to comment.