| 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 | 4 |
| 5 // Tests of closures. | 5 // Tests of closures. |
| 6 | 6 |
| 7 library closures_test; | 7 library closures_test; |
| 8 | 8 |
| 9 import 'js_backend_cps_ir.dart'; | 9 import 'js_backend_cps_ir.dart'; |
| 10 | 10 |
| (...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 240 return (x) => x; | 240 return (x) => x; |
| 241 } | 241 } |
| 242 } | 242 } |
| 243 main(x) { | 243 main(x) { |
| 244 var notTearOff = new Foo().getter; | 244 var notTearOff = new Foo().getter; |
| 245 print(notTearOff(123)); | 245 print(notTearOff(123)); |
| 246 } | 246 } |
| 247 """, | 247 """, |
| 248 r""" | 248 r""" |
| 249 function(x) { | 249 function(x) { |
| 250 P.print(V.Foo$().getter$1(123)); | 250 P.print(V.Foo$().get$getter().call$1(123)); |
| 251 }"""), | 251 }"""), |
| 252 ]; | 252 ]; |
| 253 | 253 |
| 254 void main() { | 254 void main() { |
| 255 runTests(tests); | 255 runTests(tests); |
| 256 } | 256 } |
| OLD | NEW |