Browse Source

* Reverse onUncaughtException result

git-svn-id: trunk@45414 -
michael 5 years ago
parent
commit
0fd06ded8d
1 changed files with 4 additions and 4 deletions
  1. 4 4
      utils/pas2js/dist/rtl.js

+ 4 - 4
utils/pas2js/dist/rtl.js

@@ -146,7 +146,7 @@ var rtl = {
       if (!rtl.showUncaughtExceptions) {
       if (!rtl.showUncaughtExceptions) {
         throw re
         throw re
       } else {  
       } else {  
-        if (rtl.handleUncaughtException(re)) {
+        if (!rtl.handleUncaughtException(re)) {
           rtl.showException(re);
           rtl.showException(re);
           rtl.exitcode = 216;
           rtl.exitcode = 216;
         }  
         }  
@@ -165,12 +165,12 @@ var rtl = {
     if (rtl.onUncaughtException) {
     if (rtl.onUncaughtException) {
       try {
       try {
         rtl.onUncaughtException(e);
         rtl.onUncaughtException(e);
-        return false;
+        return true;
       } catch (ee) {
       } catch (ee) {
-        return true; 
+        return false; 
       }
       }
     } else {
     } else {
-      return true;
+      return false;
     }
     }
   },
   },