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

Unified Diff: runtime/lib/object_patch.dart

Issue 11231074: Change signature of noSuchMethod to take an InvocationMirror. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Merged dart2js changes into this CL. Created 8 years, 2 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: runtime/lib/object_patch.dart
diff --git a/runtime/lib/object_patch.dart b/runtime/lib/object_patch.dart
index 603e14e26c0213877cf1c1b3da3d47a7cd907f52..c4b81fc1a2460f82c24908714ca72b78ef940815 100644
--- a/runtime/lib/object_patch.dart
+++ b/runtime/lib/object_patch.dart
@@ -23,8 +23,14 @@ patch class Object {
// A statically dispatched version of Object.toString.
static String _toString(obj) native "Object_toString";
- /* patch */ Dynamic noSuchMethod(String functionName, List args)
+ dynamic _noSuchMethod(String functionName, List args)
native "Object_noSuchMethod";
+ /* patch */ dynamic noSuchMethod(InvocationMirror invocation) {
+ var methodName = invocation.methodName;
+ var args = invocation.positionalArguments;
+ return _noSuchMethod(methodName, args);
+ }
+
/* patch */ Type get runtimeType native "Object_runtimeType";
}
« lib/core/errors.dart ('K') | « runtime/lib/object.cc ('k') | runtime/tests/vm/vm.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698