OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 // Test for dart2js to make sure the computed bailout environment is | 7 // Test for dart2js to make sure the computed bailout environment is |
8 // correct. | 8 // correct. |
9 | 9 |
10 var global; | 10 var global; |
(...skipping 20 matching lines...) Expand all Loading... |
31 Expect.equals(42, a.foo()); | 31 Expect.equals(42, a.foo()); |
32 } | 32 } |
33 | 33 |
34 a.array = new Map(); | 34 a.array = new Map(); |
35 a.array[0] = 42; | 35 a.array[0] = 42; |
36 for (int i = 0; i < 2; i++) { | 36 for (int i = 0; i < 2; i++) { |
37 Expect.equals(42, a.foo()); | 37 Expect.equals(42, a.foo()); |
38 } | 38 } |
39 global = null; | 39 global = null; |
40 } | 40 } |
OLD | NEW |