| OLD | NEW |
| 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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 @JS() | 5 import 'expect.dart'; |
| 6 library js_dispatch_property_test_lib; | |
| 7 | 6 |
| 8 import 'package:js/js.dart'; | 7 class A { |
| 8 getThis() => this; |
| 9 } |
| 9 | 10 |
| 10 @JS() | 11 main() { |
| 11 external A create(); | 12 var a = new A(); |
| 12 | 13 Expect.isTrue(a == a.getThis()); |
| 13 @JS() @anonymous | 14 Expect.isTrue(identical(a, a.getThis())); |
| 14 class A { | |
| 15 external String foo(String x); | |
| 16 } | 15 } |
| OLD | NEW |