Browse Source

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

Nicolas Petton 11 years ago
parent
commit
55854b941c
1 changed files with 4 additions and 4 deletions
  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);
 			}
 		}
 	};