| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 // VMOptions=-DUSE_CPS_IR=true | |
| 5 | 4 |
| 6 // Tests of closures. | 5 // Tests of closures. |
| 7 | 6 |
| 8 library closures_test; | 7 library closures_test; |
| 9 | 8 |
| 10 import 'js_backend_cps_ir.dart'; | 9 import 'js_backend_cps_ir.dart'; |
| 11 | 10 |
| 12 const List<TestEntry> tests = const [ | 11 const List<TestEntry> tests = const [ |
| 13 const TestEntry(""" | 12 const TestEntry(""" |
| 14 main(x) { | 13 main(x) { |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 """, | 112 """, |
| 114 r""" | 113 r""" |
| 115 function() { | 114 function() { |
| 116 return new V.A_b_closure(this); | 115 return new V.A_b_closure(this); |
| 117 }"""), | 116 }"""), |
| 118 ]; | 117 ]; |
| 119 | 118 |
| 120 void main() { | 119 void main() { |
| 121 runTests(tests); | 120 runTests(tests); |
| 122 } | 121 } |
| OLD | NEW |