浏览代码

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);
 			}
 		}
 	};