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

Unified Diff: tests/language/invocation_mirror2_test.dart

Issue 12499005: dart2js: Create noSuchMethod handlers at runtime to reduce overhead. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Reordered some stuff due to code review feedback Created 7 years, 9 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: tests/language/invocation_mirror2_test.dart
diff --git a/tests/language/invocation_mirror2_test.dart b/tests/language/invocation_mirror2_test.dart
index de6fcc28c88f49a0fe6626f290e57db1c28d2bd0..fc8849a9ce61fceb4d43d0903222dad488b49cbd 100644
--- a/tests/language/invocation_mirror2_test.dart
+++ b/tests/language/invocation_mirror2_test.dart
@@ -2,6 +2,12 @@
// 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.
+class GetName {
+ set flif(_) => "flif=";
+}
+
+static String getName(im) => im.invokeOn(new GetName());
+
class C {
var im;
noSuchMethod(im) => this.im = im;
@@ -11,6 +17,6 @@ class C {
main() {
var c = new C();
c.flif = 42;
- Expect.equals('flif=', c.im.memberName);
+ Expect.equals('flif=', getName(c.im));
Expect.equals(42, c.im.positionalArguments[0]);
}

Powered by Google App Engine
This is Rietveld 408576698