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

Unified Diff: dart/tests/compiler/dart2js_native/native_no_such_method_exception3_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_exception3_frog_test.dart
diff --git a/dart/tests/compiler/dart2js_native/native_no_such_method_exception3_frog_test.dart b/dart/tests/compiler/dart2js_native/native_no_such_method_exception3_frog_test.dart
index 1ea9de07350c48da3d2c174d603f85d3b3256e9a..d052f4369435b8eee7f342ba832bc97048298195 100644
--- a/dart/tests/compiler/dart2js_native/native_no_such_method_exception3_frog_test.dart
+++ b/dart/tests/compiler/dart2js_native/native_no_such_method_exception3_frog_test.dart
@@ -2,13 +2,14 @@
// 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 {
foo(x, y, [z]) => "foo";
}
-String getName(im) => im.invokeOn(new GetName());
+String getName(im) => reflect(new GetName()).delegate(im);
class A native "*A" {
bar() => 42;
« no previous file with comments | « dart/sdk/lib/mirrors/mirrors.dart ('k') | dart/tests/compiler/dart2js_native/native_no_such_method_exception4_frog_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698