| 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 import "package:expect/expect.dart"; | 5 import "package:expect/expect.dart"; |
| 6 | 6 |
| 7 @AssumeDynamic @NoInline | 7 @AssumeDynamic() @NoInline() |
| 8 foo() => 1; | 8 foo() => 1; |
| 9 | 9 |
| 10 @AssumeDynamic @NoInline | 10 @AssumeDynamic() @NoInline() |
| 11 throwException() => throw 'x'; | 11 throwException() => throw 'x'; |
| 12 | 12 |
| 13 main() { | 13 main() { |
| 14 var x = 10; | 14 var x = 10; |
| 15 var e2 = null; | 15 var e2 = null; |
| 16 try { | 16 try { |
| 17 var t = foo(); | 17 var t = foo(); |
| 18 throwException(); | 18 throwException(); |
| 19 print(t); | 19 print(t); |
| 20 x = 3; | 20 x = 3; |
| 21 } catch(e) { | 21 } catch(e) { |
| 22 Expect.equals(10, x); | 22 Expect.equals(10, x); |
| 23 e2 = e; | 23 e2 = e; |
| 24 } | 24 } |
| 25 Expect.equals(10, x); | 25 Expect.equals(10, x); |
| 26 Expect.equals('x', e2); | 26 Expect.equals('x', e2); |
| 27 } | 27 } |
| OLD | NEW |