RegressionTests__JavaScriptTests.st
changeset 351 5143eba2a872
parent 350 c07abe14c188
child 363 dc1c8fd2c10d
--- a/RegressionTests__JavaScriptTests.st	Tue Nov 11 22:50:28 2008 +0100
+++ b/RegressionTests__JavaScriptTests.st	Tue Nov 11 22:52:46 2008 +0100
@@ -3934,6 +3934,31 @@
     "
 !
 
+testTryCatchExceptionInfo
+    self 
+        execute:'test(arg) {
+                    var handlerWasCalled = false;
+
+                    function failingMethod() {  return 10 / arg; };
+
+                    try {
+                        failingMethod();
+                    } catch (Error e) {
+                        println(e.description());
+                        handlerWasCalled = true;
+                    }
+                    return handlerWasCalled;    
+                 }'
+        for:JavaScriptEnvironment new
+        arguments:#(0)
+        expect:true
+
+    "
+     self run:#testTryCatchExceptionInfo
+     self new testTryCatchExceptionInfo
+    "
+!
+
 testTryCatchFinally01
     self 
         execute:'test(arg) {