Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2342)

Unified Diff: dart/tests/compiler/dart2js_native/native_no_such_method_exception5_frog_test.dart

Issue 14251021: Move invokeOn to InstanceMirror. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: dart/tests/compiler/dart2js_native/native_no_such_method_exception5_frog_test.dart
diff --git a/dart/tests/compiler/dart2js_native/native_no_such_method_exception5_frog_test.dart b/dart/tests/compiler/dart2js_native/native_no_such_method_exception5_frog_test.dart
index 26fe5c889b102300eb789a3d9d40a3bc47b27d04..117e15617eb1194368ca4d0ab0764b5bc7c2cff8 100644
--- a/dart/tests/compiler/dart2js_native/native_no_such_method_exception5_frog_test.dart
+++ b/dart/tests/compiler/dart2js_native/native_no_such_method_exception5_frog_test.dart
@@ -2,6 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
+import "dart:mirrors" show reflect;
import "package:expect/expect.dart";
class GetName {
@@ -9,7 +10,7 @@ class GetName {
baz(x, y, z) => "baz";
}
-String getName(im) => im.invokeOn(new GetName());
+String getName(im) => reflect(new GetName()).delegate(im);
class A native "*A" {
bar() => 42;

Powered by Google App Engine
This is Rietveld 408576698