| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 // Regression test for issue 21795. | 5 // Regression test for issue 21795. |
| 6 | 6 |
| 7 foo(t) { | 7 foo(t) { |
| 8 try { | 8 try { |
| 9 if (t == 123) throw 42; | 9 if (t == 123) throw 42; |
| 10 } finally { } | 10 } finally { } |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 for (var i=0; i<10000; ++i) a.test(0); | 37 for (var i=0; i<10000; ++i) a.test(0); |
| 38 try { | 38 try { |
| 39 a.test(123); | 39 a.test(123); |
| 40 } catch (e, s) { | 40 } catch (e, s) { |
| 41 if (s.toString().indexOf("foo") == -1) { | 41 if (s.toString().indexOf("foo") == -1) { |
| 42 print(s); | 42 print(s); |
| 43 throw "Expected foo in stacktrace!"; | 43 throw "Expected foo in stacktrace!"; |
| 44 } | 44 } |
| 45 } | 45 } |
| 46 } | 46 } |
| OLD | NEW |