Index: tests/language/stack_trace_test.dart |
diff --git a/tests/language/stack_trace_test.dart b/tests/language/stack_trace_test.dart |
index ac507272ec34e031225cdcd4c63c7fac654fbde4..87c5815f699994621f89617c53a95312df60abd1 100644 |
--- a/tests/language/stack_trace_test.dart |
+++ b/tests/language/stack_trace_test.dart |
@@ -13,7 +13,7 @@ class Helper { |
try { |
i = func(); |
i = 10; |
- } catch (MyException exception, var stacktrace) { |
+ } on MyException catch (exception, stacktrace) { |
i = 50; |
print(exception.message_); |
Expect.equals((stacktrace != null), true); |
@@ -23,7 +23,7 @@ class Helper { |
int j; |
i = func1(); |
i = 200; |
- } catch (MyException exception, var stacktrace) { |
+ } on MyException catch (exception, stacktrace) { |
i = 50; |
print(exception.message_); |
Expect.equals((stacktrace != null), true); |
@@ -33,7 +33,7 @@ class Helper { |
int j; |
i = func2(); |
i = 200; |
- } catch (MyException exception, var stacktrace) { |
+ } on MyException catch (exception, stacktrace) { |
i = 50; |
print(exception.message_); |
Expect.equals((stacktrace != null), true); |
@@ -58,7 +58,7 @@ class Helper { |
static int func1() { |
try { |
func(); |
- } catch (MyException exception) { |
+ } on MyException catch (exception) { |
throw new MyException("Exception Test for stack trace being printed");; |
} |
return 10; |
@@ -67,7 +67,7 @@ class Helper { |
static int func2() { |
try { |
func(); |
- } catch (MyException exception) { |
+ } on MyException catch (exception) { |
throw; |
} |
return 10; |