1
0
Преглед на файлове

Stop the execution by throwing the exception on exception handling.
Fixes #238

Nicolas Petton преди 12 години
родител
ревизия
55854b941c
променени са 1 файла, в които са добавени 4 реда и са изтрити 4 реда
  1. 4 4
      js/boot.js

+ 4 - 4
js/boot.js

@@ -530,10 +530,10 @@ function Smalltalk() {
 				st.thisContext = undefined;
 				if(error.smalltalkError) {
 					handleError(error);
-					return nil;
-				} else {
-					throw(error);
-				}
+                }
+                // Throw the exception anyway, as we want to stop
+                // the execution to avoid infinite loops
+				throw(error);
 			}
 		}
 	};